X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_internal.h;h=2a5a4db0c95b2812557821bc182a78cf77641d75;hb=97e842e50bcf77fb81f83de8d6983e0ddfa0b6d6;hp=2f3155b6ad9b1a8f1a0d33b165894809504c628d;hpb=bd13ff3040ea5d30009892eecc31854ed11ac408;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index 2f3155b..2a5a4db 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -801,11 +801,12 @@ extern SFG_State fgState; * A call to those macros assures us that there is a current * window set, respectively: */ -#define FREEGLUT_EXIT_IF_NO_WINDOW( string ) \ - if ( ! fgStructure.CurrentWindow ) \ - { \ - fgError ( " ERROR: Function <%s> called" \ - " with no current window defined.", (string) ) ; \ +#define FREEGLUT_EXIT_IF_NO_WINDOW( string ) \ + if ( ! fgStructure.CurrentWindow && \ + ( fgState.ActionOnWindowClose != GLUT_ACTION_CONTINUE_EXECUTION ) ) \ + { \ + fgError ( " ERROR: Function <%s> called" \ + " with no current window defined.", (string) ) ; \ } /*