- /*
- * Make sure there is a current window, and thus a current context available
- */
- freeglut_assert_ready;
- freeglut_return_val_if_fail( fgStructure.Window != NULL, 0 );
+ /* Make sure there is a current window, and thus a current context available */
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutExtensionSupported" );
+ freeglut_return_val_if_fail( fgStructure.CurrentWindow != NULL, 0 );