ecere/gfx/drivers/OpenGL: Fixed VBO/IBOs mixup
authorJerome St-Louis <jerome@ecere.com>
Thu, 26 Feb 2015 01:55:25 +0000 (20:55 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:31 +0000 (20:19 -0400)
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec

index ba9941c..047ce1f 100644 (file)
@@ -1348,7 +1348,8 @@ void GLBindBuffer(int target, uint buffer)
 #endif
       glBindBufferARB(target, buffer);
 #endif
-   currentVertexBuffer = buffer;
+   if(target == GL_ARRAY_BUFFER_ARB)
+      currentVertexBuffer = buffer;
 }
 
 public void GLVertexPointer(int numCoords, int glType, int stride, void *ptr, int numVertices)