Login  Register

Re: converting from Sun's jogl to jogamp's jogl -- HELP

Posted by Alexandra on Mar 23, 2011; 9:17pm
URL: https://forum.jogamp.org/converting-from-Sun-s-jogl-to-jogamp-s-jogl-HELP-tp2715969p2722319.html

I'm also getting this error when I try to implement the shared context in my application.

Caused by: javax.media.opengl.GLException: This GL object is being incorrectly used with a different GLContext than that which created it
        at javax.media.opengl.DebugGL2.checkContext(DebugGL2.java:32466)
        at javax.media.opengl.DebugGL2.glBindTexture(DebugGL2.java:15270)
        at WildMagic.LibRenderers.OpenGLRenderer.OpenGLFrameBuffer.Enable(OpenGLFrameBuffer.java:166)

Shared contexts seem to only work for me with very simple examples. Not when I use the framebuffer for render-to-texture or for translucent surfaces.

Again, in Sun's jogl this all worked perfectly. The application code hasn't changed -- it's the underlying jogl implementation that changed.  I would like to use jogamp so I can use jocl...

Thanks again.