Re: converting from Sun's jogl to jogamp's jogl -- HELP
Posted by
Alexandra on
Mar 23, 2011; 7:43pm
URL: https://forum.jogamp.org/converting-from-Sun-s-jogl-to-jogamp-s-jogl-HELP-tp2715969p2721945.html
Thanks for replying. It's not easy for me to carve out a portion of the code. I did modify this program:
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/junit/com/jogamp/test/junit/jogl/acore/TestSharedContextListAWT.java;h=b44158dce98537b7e12e4a354a702d0082f2b4ef;hb=de2a30104098216963132ed02b3dd66acd799d9eAnd instead of Gears put in part of my program to test. I got the shared context to work. But when I go back to my main app, and follow the same code initialization I now get this error:
Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: No OpenGL context is current on this thread
at javax.media.opengl.DebugGL2.checkContext(DebugGL2.java:32463)
at javax.media.opengl.DebugGL2.glDeleteBuffers(DebugGL2.java:13932)
I think the problem is that I am using the mouse to drag in one canvas, which sends a message to my 'main' display which then tries to update the objects/memory on the GPU. But I'm not really sure. I will try to separate out the code and put it in the above 'TestShared...' and send it to you to help debug.
I'm using jogamp 2.0-rc2 build, on a Windows XP machine with NVIDIA Quadro FX 4800, driver 190.38 (I can't update my driver because then framebuffers completely stop working).
What's frustrating is that my app works with Sun's old jogl. It's only when I update to jogamp that it breaks.
I do appreciate the help!