Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6ae5f
)
ecere/gfx/drivers/OpenGL: Fixed VBO/IBOs mixup
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 26 Feb 2015 01:55:25 +0000
(20:55 -0500)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 15 Oct 2015 00:19:31 +0000
(20:19 -0400)
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
b/ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
index
ba9941c
..
047ce1f
100644
(file)
--- a/
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
+++ b/
ecere/src/gfx/drivers/OpenGLDisplayDriver.ec
@@
-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)