Hi,
Can anyone shed light on the following exception:
Exception in thread "main" org.lwjgl.opengl.OpenGLException: Cannot use Buffers when Array Buffer Object is enabled
at org.lwjgl.opengl.GLChecks.ensureArrayVBOdisabled(GLChecks.java:84)
at org.lwjgl.opengl.GL11.glVertexPointer(GL11.java:2528)
I've previously rendered a VBO using glDrawRangeElements and the exception above is thrown when I attempt to set the vertex pointer for a vertex array (not a VBO)
Any ideas? (I assumed I could mix and match vert arrays and VBOs...)
You need to call ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER, 0); before you can use vertex arrays again.
Ciao Matthias
Cheers,
That did the trick.
As I was buffering indices, I needed to unbind GL_ELEMENT_ARRAY_BUFFER_ARB too.