From fc4d9998977a98841c42f2a41904c29bd956d24e Mon Sep 17 00:00:00 2001 From: dcnieho Date: Tue, 24 Jul 2012 17:43:12 +0000 Subject: [PATCH] the Callbackmaker demo, with its window close callback, is a nice place to test glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION) working fine :) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1373 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c b/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c index 5abd8ee..deb8f4b 100644 --- a/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c +++ b/freeglut/freeglut/progs/demos/CallbackMaker/CallbackMaker.c @@ -476,6 +476,7 @@ main(int argc, char *argv[]) glutInitWindowPosition ( 140, 140 ); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE ); glutInit(&argc, argv); + glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE,GLUT_ACTION_CONTINUE_EXECUTION); freeglut_window = glutCreateWindow( "Callback Demo" ); printf ( "Creating window %d as 'Callback Demo'\n", freeglut_window ) ;