OGL: fix buffer destruction
This buffer will be unbound in the StreamBuffer class itself, so no need to unbind them before.
This commit is contained in:
parent
f7d1943615
commit
ff942d44b5
|
@ -63,9 +63,6 @@ void VertexManager::CreateDeviceObjects()
|
|||
|
||||
void VertexManager::DestroyDeviceObjects()
|
||||
{
|
||||
glBindBuffer(GL_ARRAY_BUFFER, 0 );
|
||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0 );
|
||||
|
||||
delete s_vertexBuffer;
|
||||
delete s_indexBuffer;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue