Explorar el Código

Merge pull request #1588 from mchiasson/patch-1

VertexBufferGL unbinds correct target if destroyed
Бранимир Караџић hace 7 años
padre
commit
2950f85d7f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderer_gl.cpp

+ 1 - 1
src/renderer_gl.cpp

@@ -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) );
 	}