Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  GLException upon exit  (Read 678 times)
0 Members and 1 Guest are viewing this topic.
Offline Cork

Full Member
**

Posts: 138


vote 6uN for OSX


« on: 2003-09-11 11:16:01 »

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)
Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #1 on: 2003-09-11 11:38:00 »

You should stop your Animator before exiting. See the JOGL demos which use Animators for examples.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.118 seconds with 21 queries.