Hopefully removed all damage done by commits without merge
[freeglut] / src / freeglut_ext.c
index bcda7a2..7278b34 100644 (file)
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
 
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
 #define GLX_GLXEXT_PROTOTYPES
-
 #include <GL/freeglut.h>
 #include "freeglut_internal.h"
 
-
 struct name_address_pair
 {
     const char *name;
@@ -192,6 +186,7 @@ void *FGAPIENTRY glutGetProcAddress( const char *procName )
 {
     /* Try GLUT functions first */
     int i;
+    FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutGetProcAddress" );
     for( i = 0; glut_functions[ i ].name; i++ )
         if( strcmp( glut_functions[ i ].name, procName ) == 0)
             return glut_functions[ i ].address;