Re: converting from Sun's jogl to jogamp's jogl -- HELP
Posted by Alexandra on Mar 24, 2011; 12:59am
URL: https://forum.jogamp.org/converting-from-Sun-s-jogl-to-jogamp-s-jogl-HELP-tp2715969p2723264.html
I saw somewhere else that the following exception:
Caused by: javax.media.opengl.GLException: This GL object is being incorrectly used with a different GLContext than that which created it
might be caused by caching the GL. So every time I get the init(GLAutoDrawable) or display(GLAutoDrawable) I do
myGL2 = auto.getGL().getGL2();
Anyway... how would I use the DebugGL2 in this case? Where do I call:
GLAutoDrawable setGL( new DebugGL2( auto.getGL().getGL2() ) )
I currently need the DebugGL2 for the framebuffer implementation of translucent surfaces to work...