//This option must be set, or when glut leaves the main loop. the exit(3) function is called... annoying
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION);
- glutMainLoop();
-
+
+ #ifndef OMP_THREADED
+ glutMainLoop();
+ #endif //OMP_THREADED
}
/**
{
if (theKey == 'x' || theKey == 'X')
{
+
QuitProgram(false);
+ glutLeaveMainLoop();
return;
}