Hi,
You may tell from another thread that I’m currently struggling with jogl and threads. Now I’m trying something but getting the “Unable to lock surface” exception.
There are no threads on this forum on this and the only explanation I found was this:
- net.java.games.jogl.GLException: Unable to lock surface
JOGL appears to have some very weird internal setup timing that causes problems in odd ways. This exception comes when you have attempted to do something to the GLCanvas before adding it to another component that is not already visible. To avoid this, make sure you call setVisible(true) on the containing Frame/Window before adding the GLCanvas.
This seems to occur only when I try to initialize things from the Swing thread.
Can someone tell me more about what’s going on here?
Thanks.
Pahidla