added error check (John Fay)
authorBrian Paul <brianp@vmware.com>
Wed, 16 Feb 2005 00:49:28 +0000 (00:49 +0000)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Feb 2005 00:49:28 +0000 (00:49 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@569 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_callbacks.c

index f1f4b90..2dd2232 100644 (file)
@@ -131,6 +131,7 @@ static void fghVisibility( int status )
 {
     int glut_status = GLUT_VISIBLE;
 
+    FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED ( "Visibility Callback" );
     freeglut_return_if_fail( fgStructure.Window );
 
     if( ( GLUT_HIDDEN == status )  || ( GLUT_FULLY_COVERED == status ) )