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.