Check out my new game, beta testing ahoy!

Started by blue_tomato, February 05, 2005, 14:32:31

Previous topic - Next topic

elias

OpenGL errors (like the 1281 one) are raised by the OpenGL driver itself. Unfortunately, OpenGL errors are only caught at certain places, for example at Display.update(). You should try and narrow down the offending call by inserting calls to org.lwjgl.opengl.Util.checkGLError(). For example, if you have:

GL11.glSomething(...);
GL11.glSomethingElse(...);
GL11.glSomething2(...);
GL11.glSomething(...);
Display.update();


You should try:

GL11.glSomething(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomethingElse(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomething2(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomething(...);
Display.update();


To see which of the GL calls raises the error.

- elias

asifmansoor

Quote from: "elias"OpenGL errors (like the 1281 one) are raised by the OpenGL driver itself. Unfortunately, OpenGL errors are only caught at certain places, for example at Display.update(). You should try and narrow down the offending call by inserting calls to org.lwjgl.opengl.Util.checkGLError(). For example, if you have:

GL11.glSomething(...);
GL11.glSomethingElse(...);
GL11.glSomething2(...);
GL11.glSomething(...);
Display.update();


You should try:

GL11.glSomething(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomethingElse(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomething2(...);
org.lwjgl.opengl.Util.checkGLError()
GL11.glSomething(...);
Display.update();


To see which of the GL calls raises the error.

- elias

Hi,

my problem is that I am using an engine built on top of OpenGL and I dont have the source code for the engine. It is a jar provided to me.

I am getting the following stack trace.

org.lwjgl.opengl.OpenGLException : Invalid value (1281)

           at org.lwjgl.opengl.Util.checkGLError (Unknown Source)

           at org.lwjgl.opengl.Window.update (Unknown Source)

at gos.provider.video.lwjgl.LwjglVideoProvider.update (Unknown Source)

           at gos.service.video.VideoService.update (Unknown Source)

           at gos.service.video.b.update (Unknown Source)

           at gos.core.Core.b (Unknown Source)

           at gos.core.Core.enterLoop (Unknown Source)



Here GOS is the engine provided to me as a jar. Please let me know how to proceed

Thanks in advance