git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@955
7f0cb862-5218-0410-a997-
914c9d46530a
void FGAPIENTRY glutPostRedisplay( void )
{
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutPostRedisplay" );
- FREEGLUT_EXIT_IF_NO_WINDOW ( "glutPostRedisplay" );
+ if ( ! fgStructure.CurrentWindow )
+ {
+ fgError ( " ERROR: Function <%s> called"
+ " with no current window defined.", "glutPostRedisplay" ) ;
+ }
+
fgStructure.CurrentWindow->State.Redisplay = GL_TRUE;
}