Re: Context sharing: regression from JSR231 to Jogl 2.x?
Posted by
Sven Gothel on
Sep 13, 2011; 5:00pm
URL: https://forum.jogamp.org/Context-sharing-regression-from-JSR231-to-Jogl-2-x-tp3332167p3333220.html
On Tuesday, September 13, 2011 03:06:54 PM gouessej [via jogamp] wrote:
>
> 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*.
Yes. You can also use the GLEventListener init(..) method,
called after GLContext creation.
~Sven