Is it planned to add a functionality to JOGL that acts similar to SwingUtitilities.invokeLater() and .invokeAndWait()?
The problem I encountered was the following: While happily hacking my application using BeanShell I was interested what the maximum texture size my graphics driver supports is. The call to gl.glGetIntegerv(…) failed with an exception in native code (Win XP, GeForce256). I know that this behaviour is caused due to the threading model JOGL uses.
I had a similar problem when changing the polygon mode as a reaction to a keypress. Changing the state value from the AWT thread caused nothing. The only solution was to introduce a variable that saves the current polygon mode and set it every time the display-method gets called. The value of the variable was controlled by the keypress handler.
I wonder if the API expects me to implement the invokeLater-feature to reach greater flexibility?
Maybe there is a better solution to the things I mentioned. If so, please tell me.