Re: Odd behaviour from GLEventListener with JOGL 2
Posted by Ric Wright on Oct 28, 2010; 12:59pm
URL: https://forum.jogamp.org/Odd-behaviour-from-GLEventListener-with-JOGL-2-tp1782146p1786156.html
The problem with just blindly using an Animator is that it feels a bit hackish. If you are planning to animate stuff it might make sense, but ...
And, Wade, yes that works too.
But both of these seem inefficient. Clearly, the underlying machinery hasn't finished initializing. And when it does, it doesn't call init() unless one pokes it by calling display(). The question, to my mind, is how do I detect when initialization is complete? I thought perhaps java.awt.Frame.isValid might work, but no. Ditto other event-flags. I can implement what Wade suggests, of course, but this seems like a bug. This worked as expected in JOGL 1.1.1 but now (in JOGL 2 as of 10 days ago) it behaves oddly. I'll probably just stick with 1.1.1 until JOGL 2 is more stable.
If someone on the JOGL team wants me to file a bug, let me know