added error check (John Fay)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@569 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
brianp 2005-02-16 00:49:28 +00:00
parent 5653791bd0
commit cd34db4902

View File

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