forked from organicmaps/organicmaps
drape_tests fix
This commit is contained in:
parent
f28b92831d
commit
e8a151be56
3 changed files with 4 additions and 8 deletions
|
@ -143,13 +143,10 @@ UNIT_TEST(BatchLists_Test)
|
|||
EXPECTGL(glEnableVertexAttribute(1));
|
||||
EXPECTGL(glVertexAttributePointer(1, 3, gl_const::GLFloatType, false, 0, 0));
|
||||
|
||||
// bind index buffer
|
||||
EXPECTGL(glBindBuffer(IndexBufferID, gl_const::GLElementArrayBuffer));
|
||||
|
||||
// delete bucket
|
||||
EXPECTGL(glDeleteBuffer(IndexBufferID));
|
||||
EXPECTGL(glDeleteBuffer(DataBufferID));
|
||||
EXPECTGL(glDeleteVertexArray(3));
|
||||
EXPECTGL(glDeleteBuffer(_));
|
||||
EXPECTGL(glDeleteBuffer(_));
|
||||
EXPECTGL(glDeleteVertexArray(VaoID));
|
||||
EXPECTGL(glUseProgram(0));
|
||||
EXPECTGL(glDeleteProgram(ProgramID));
|
||||
}
|
||||
|
|
|
@ -16,7 +16,6 @@ GPUBuffer::GPUBuffer(Target t, uint8_t elementSize, uint16_t capacity)
|
|||
, m_t(t)
|
||||
{
|
||||
m_bufferID = GLFunctions::glGenBuffer();
|
||||
Bind();
|
||||
Resize(capacity);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ VertexArrayBuffer::VertexArrayBuffer(uint32_t indexBufferSize, uint32_t dataBuff
|
|||
VertexArrayBuffer::~VertexArrayBuffer()
|
||||
{
|
||||
m_indexBuffer.Destroy();
|
||||
(void)GetRangeDeletor(m_buffers, MasterPointerDeleter())();
|
||||
DeleteRange(m_buffers, MasterPointerDeleter());
|
||||
|
||||
if (m_VAO != 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue