Login  Register

Re: OpenGL error 1282 at GLContext.release()

Posted by Sven Gothel on Feb 15, 2012; 3:43pm
URL: https://forum.jogamp.org/OpenGL-error-1282-at-GLContext-release-tp3742304p3747348.html

On 02/15/2012 04:09 PM, ac [via jogamp] wrote:

>
>
> The OpenGL error 1282 still shows up, between the
> "ExtensionAvailabilityCache: getGLExtensions() called" and the before the
> program starts spitting "setRealized:
> jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable true == true"
> continuously:
>
> ...
> GLDebugMessageHandler.init(false)
> GLDebugMessageHandler: GL DEBUG not set in ARB ctx options: 4.2
> (Compatibility profile, arb, ES2 compatible, hardware) - 4.2.0
> GLDebugMessageHandler.init(false) .. n/a
> ExtensionAvailabilityCache: getGLExtensions() called
> OpenGL error 1282 at bot endDraw(): invalid operation
> setRealized: jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable true ==
> true
> setRealized: jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable true ==
> true
> setRealized: jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable true ==
> true
> setRealized: jogamp.opengl.windows.wgl.WindowsOnscreenWGLDrawable true ==
> true
> ...
>
> Again, to have this error printing out everytime the app starts it is not a
> major problem but more like an annoyance. It might be pointing to some error
> we have in Processing regarding thread handling...
Hmm ..

so pls run with the DebugGL and TraceGL props as I have recommended.
        -Djogl.debug.DebugGL -Djogl.debug.TraceGL

and do a println("lala "+gl.getGLError()); right after JOGL init,
you may force such via the no more required GLProfile.initSingletion();

Then let's see who causes the gl error.

If it's within our initialization, ie glGetExtensions() etc ..
it's funny. Check the output of TestGLProfile01NEWT with the debug flags.
Do all profiles have extensions listed ?

https://jogamp.org/chuck/view/fwd/job/jogl/661/label=win7-x86_64-nvida/testReport/com.jogamp.opengl.test.junit.jogl.acore/TestGLProfile01NEWT/testGLProfileDefault/?

See the 'raw console output' (link) and go to 'testGLProfileDefault'

You should see things like:
GL_EXTENSIONS  265
  .....
GLX_EXTENSIONS 25
  .....

~Sven



signature.asc (910 bytes) Download Attachment