GLException upon exit

Hi all,

I noticed that my game always throws the exception below when I exit. I thought it was just me doing something wrong but I just tried it with one of the Nehe ported tutorials(37) (btw Good job all involved!) and got the same exception.

I’m not so concerned since it’s only at exit but thought I should mention it.

Regards,

Peter

net.java.games.jogl.GLException: Error swapping buffers
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers(WindowsOnscreenGLContext.java:140)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:193)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
at net.java.games.jogl.Animator$1.run(Animator.java:104)
at java.lang.Thread.run(Thread.java:534)

You should stop your Animator before exiting. See the JOGL demos which use Animators for examples.