mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Merge pull request #1588 from mchiasson/patch-1
VertexBufferGL unbinds correct target if destroyed
This commit is contained in:
@@ -4554,7 +4554,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
|
||||
|
||||
void VertexBufferGL::destroy()
|
||||
{
|
||||
GL_CHECK(glBindBuffer(GL_ARRAY_BUFFER, 0) );
|
||||
GL_CHECK(glBindBuffer(m_target, 0) );
|
||||
GL_CHECK(glDeleteBuffers(1, &m_id) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user