X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_teapot.c;h=2faa851140379081eb49df7c1df05f05c54161fe;hb=ce2e5aba172eb85cda2b4f047bdcf9f54d019fd7;hp=0956642be22a88ec9c01b083b161274c28143e97;hpb=006650e1dd72e73249d41e2bcea8b1668262a999;p=freeglut diff --git a/src/freeglut_teapot.c b/src/freeglut_teapot.c index 0956642..2faa851 100644 --- a/src/freeglut_teapot.c +++ b/src/freeglut_teapot.c @@ -72,13 +72,8 @@ * OpenGL(TM) is a trademark of Silicon Graphics, Inc. */ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - #include #include "freeglut_internal.h" - #include "freeglut_teapot_data.h" /* -- PRIVATE FUNCTIONS ---------------------------------------------------- */ @@ -182,6 +177,7 @@ static void fghTeapot( GLint grid, GLdouble scale, GLenum type ) */ void FGAPIENTRY glutWireTeapot( GLdouble size ) { + FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireTeapot" ); /* We will use the general teapot rendering code */ fghTeapot( 10, size, GL_LINE ); } @@ -191,6 +187,7 @@ void FGAPIENTRY glutWireTeapot( GLdouble size ) */ void FGAPIENTRY glutSolidTeapot( GLdouble size ) { + FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSolidTeapot" ); /* We will use the general teapot rendering code */ fghTeapot( 7, size, GL_FILL ); }