I’m getting the a GLException:
Exception in thread "AWT-EventQueue-0" net.java.games.jogl.GLException: Error fr
eeing OpenGL context
at net.java.games.jogl.impl.windows.WindowsGLContext.free(WindowsGLConte
xt.java:151)
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.free(Window
sOnscreenGLContext.java:132)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:203)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:89)
at sun.awt.RepaintArea.paintComponent(Unknown Source)
at sun.awt.RepaintArea.paint(Unknown Source)
at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I used TraceGL, and these are the methods being called:
glViewport(0,0,492,466)
glViewport(0,0,492,466)
glMatrixMode(5889)
glLoadIdentity()
glMatrixMode(5888)
glLoadIdentity()
glViewport(0,0,492,466)
glViewport(0,0,492,466)
glMatrixMode(5889)
glLoadIdentity()
glMatrixMode(5888)
glLoadIdentity()
glViewport(0,0,492,466)
glViewport(0,0,492,466)
glMatrixMode(5889)
glLoadIdentity()
glMatrixMode(5888)
glLoadIdentity()
glClear(16640)
glLoadIdentity()
glRotatef(360.0,0.0,1.0,0.0)
glBindTexture(3553,1)
glBegin(7)
I am not sure what is going on, but the error happens every time.