I'm trying to use glDrawElements with an interleaved VBO, like this:
GL11.glVertexPointer(3, GL11.GL_FLOAT, 40, 0);
GL11.glNormalPointer(GL11.GL_FLOAT, 40, 12);
GL11.glColorPointer(4, GL11.GL_FLOAT, 40, 24);
But, I'm getting the following error on the glVertexPointer call:
Cannot use offsets when Array Buffer Object is disabled
I don't understand what I'm doing incorrectly. I looked at the LWJGL source code that emits that error, and it seems to be checking for GL15.GL_ARRAY_BUFFER_BINDING, which I've enabled in my code. What am I doing wrong?