Re: Context sharing: regression from JSR231 to Jogl 2.x?
Posted by
gouessej on
Sep 13, 2011; 1:06pm
URL: https://forum.jogamp.org/Context-sharing-regression-from-JSR231-to-Jogl-2-x-tp3332167p3332552.html
Hi!
Something has changed in the way the context is handled, more precisely on when it is available. It is not a regression as it fixes several bugs and it clarifies the way the reparenting should work.
In JOGL 1.1.1a, you could get the context of a GLCanvas as soon as the instance had been created (like in your example).
In JOGL 2.0, you can get the context for the first time only once the method addNotify() has been called. You can override this method like I did in Ardor3D or you can try to get the context later.
This is not a bug.