Re: [JOGL1.1.1->JOGL2] Sharing context, drawable member of GLCanvas is null in createContext()
Posted by Djak on Nov 06, 2010; 2:25pm
URL: https://forum.jogamp.org/JOGL1-1-1-JOGL2-Sharing-context-drawable-member-of-GLCanvas-is-null-in-createContext-tp1851054p1853397.html
Hi,
Thanks, I use jogl-2.0-pre-20100924-windows-i586 build.
Here is a very tiny example :
__________________________________________________________________
Frame frame = new Frame("JOGL");
GLCanvas canvas = new GLCanvas();
canvas.setAutoSwapBufferMode(false);
frame.add(canvas);
...
GLCanvas canvas2 = new GLCanvas();
GLContext sharedContext = canvas2.createContext(canvas.getContext());
__________________________________________________________________
When I'll get more time, I'll do a test-case which compiles.