GL15.glGenBuffers() java.lang.IllegalStateException: Function is not supported

Started by FuZi042, July 27, 2013, 02:53:09

Previous topic - Next topic

FuZi042

Stack Trace:
Exception in thread "main" java.lang.IllegalStateException: Function is not supported
   at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
   at org.lwjgl.opengl.GL15.glGenBuffers(GL15.java:116)
   at com.FuZi042.TheQuadExampleDrawElements.setupQuad(TheQuadExampleDrawElements.java:108)
   at com.FuZi042.TheQuadExampleDrawElements.<init>(TheQuadExampleDrawElements.java:38)
   at com.FuZi042.TheQuadExampleDrawElements.main(TheQuadExampleDrawElements.java:22)

It is happeningwhen ever i try to call 'GL15.glGenBuffers()'. I am using Debian/gnome
and this is the 'java -Version' output:
java version "1.7.0_03"
OpenJDK Runtime Environment (IcedTea7 2.1.6) (7u3-2.1.6-1)
OpenJDK Client VM (build 22.0-b10, mixed mode, sharing)

princec