prustogi / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

LwjglAbstractDisplay throws OpenGLException without a description #563

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
com.jme3.system.lwjgl.LwjglAbstractDisplay.checkGLError() uses 
Util.checkGLError() to throw an Exception but Util.checkGLError() doesn't say 
what exactly the error was and resets the flag to GL_NO_ERROR.

possible solution:

int err = GL11.glGetError();
if (err != GL11.GL_NO_ERROR)
    listener.handleError("An OpenGL error has occured: " 
        + Util.translateGLErrorString(err), new OpenGLException(err));

Original issue reported on code.google.com by art.kna...@googlemail.com on 25 Dec 2012 at 9:25

GoogleCodeExporter commented 8 years ago
Please ignore that issue / delete it!
An integer error code IS shown in the exception.

Original comment by art.kna...@googlemail.com on 25 Dec 2012 at 9:35

GoogleCodeExporter commented 8 years ago

Original comment by ShadowIs...@gmail.com on 17 Apr 2013 at 2:02