-
- /*
- * Check the execution state. If this has been called from
- * "glutDestroyWindow", a statement in that function will reset the
- * "ExecState" after this function returns.
- */
- if( fgState.ActionOnWindowClose != GLUT_ACTION_CONTINUE_EXECUTION )
- /*
- * Set the execution state flag to drop out of the main loop.
- */
- if( fgState.ActionOnWindowClose == GLUT_ACTION_EXIT )
- fgState.ExecState = GLUT_EXEC_STATE_STOP;