LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: dangerdoc on October 14, 2012, 20:27:04

Title: java nullpointer exception...
Post by: dangerdoc on October 14, 2012, 20:27:04
Hello,
I am trying to output GL_Version, and I am having trouble. When I try:
GlGetString(GL_VERSION)
Netbeans doesn't recognise GL_VERSION. When I try this (for any version not just GL11):
boolean  v11 = GLContext.getCapabilities().OpenGL11;
It gives me java nullpointer exception.
Title: Re: java nullpointer exception...
Post by: Fool Running on October 15, 2012, 14:29:49
Most likely the problem is that you need to call Display.Create() before you can call those methods.