Slick Forums

Discuss the Slick 2D Library
It is currently Wed May 22, 2013 9:55 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sun Feb 19, 2012 10:12 pm 
Offline

Joined: Sun Jun 03, 2007 2:51 am
Posts: 80
I have the following code in my game's paintGL function:

Code:
try {
   swapBuffers();
   if (isVisible()) repaint();
} catch (Exception e) {
   e.printStackTrace();
   System.out.println("Unable to swap buffer in GameManager.java");
   //TODO: Maybe don't exit here, note the problem and continue
   Jester.exit(1);
}


As you can see, I am uncertain whether I should do an exit(1), or just note the problem and let the game keep running. Any suggestions? I don't have enough OpenGL experience to know what sort of problem it would be if swapBuffers() failed.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group