//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);
//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);