LWJGL Forum

Programming => OpenGL => Topic started by: TheSmit on September 04, 2006, 18:29:27

Title: help with an error please
Post by: TheSmit on September 04, 2006, 18:29:27
Exception in thread "main" org.lwjgl.opengl.OpenGLException: Cannot use offsets when Array Buffer Object is disabled
   at org.lwjgl.opengl.GLChecks.ensureArrayVBOenabled(GLChecks.java:69)


I have no idea what this is or how to fix it, please help :)
Title: help with an error please
Post by: Evil-Devil on September 05, 2006, 07:44:06
Have you enabled VBOs? You can only use them if you enabled them.

See the wiki for more details about VBO.
http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/opengl/basicvbo
Title: hmmmmmm...
Post by: Fool Running on September 05, 2006, 17:24:20
One thing you might check is for the correct version of the method you are calling.
For example, glDrawElements() has multiple overloads. The version that doesn't take a buffer can only be called when VBOs are enabled. The other versions can only be called when VBOs are disabled.
This is very confusing starting out, since VBOs aren't part of OpenGL 1.1 but glDrawElements() for VBOs is still defined in GL11 :lol:
Title: help with an error please
Post by: TheSmit on September 07, 2006, 08:41:56
thanks for the heads-up guys. Seems I was calling glDrawElephants with the wrong arguments. Now going back to basics to work out exactly what I should be doing :)