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;
}
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSwapBuffers" );
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutSwapBuffers" );
+ /*
+ * "glXSwapBuffers" already performs an implicit call to "glFlush". What
+ * about "SwapBuffers"?
+ */
glFlush( );
if( ! fgStructure.CurrentWindow->Window.DoubleBuffered )
return;