Re: moving GLPanel from one to other AWT container
Posted by Ondrej on Mar 27, 2011; 9:11pm
URL: https://forum.jogamp.org/moving-GLPanel-from-one-to-other-AWT-container-tp2722179p2740484.html
Thanks Sven. I have seen the unit test. Now I also use PBuffer for parent context. Moving of GLCanvas between AWT containers works. Textures created in parent context are shared but after some number of moves I get exception:
javax.media.opengl.GLException: Unable to create temp OpenGL context for device context 0x69010309
at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:296)
The number of successful moves (before exception) differs from 5 to aprox. 50. Tested on notebook with ATI Catalyst 9.12.
Ondrej