Exception in thread "main" net.java.games.jogl.GLException: Surface already unlocked
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.unlockSurface(WindowsOnscreenGLContext.java:199)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.free(WindowsOnscreenGLContext.java:134)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:319)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:208)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)
at cola3d.demos.DemoUI.importFile(DemoUI.java:684)
at cola3d.demos.DemoUI.main(DemoUI.java:704)
I’m trying to copy some source code from HWShadowmapsSimple.java, and this exception happens when I call PBuffer.display() inside my Canvas listener’s display method.
Yet, they do the same thing in the JOGL demo? What could I be doing wrong?
Thanks,