projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allowing compilation of Windows version by removing DLL decorations from deprecated...
[freeglut]
/
src
/
freeglut_teapot.c
diff --git
a/src/freeglut_teapot.c
b/src/freeglut_teapot.c
index
0956642
..
2faa851
100644
(file)
--- a/
src/freeglut_teapot.c
+++ b/
src/freeglut_teapot.c
@@
-72,13
+72,8
@@
* OpenGL(TM) is a trademark of Silicon Graphics, Inc.
*/
* OpenGL(TM) is a trademark of Silicon Graphics, Inc.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
#include <GL/freeglut.h>
#include "freeglut_internal.h"
-
#include "freeglut_teapot_data.h"
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
#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 )
{
*/
void FGAPIENTRY glutWireTeapot( GLdouble size )
{
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutWireTeapot" );
/* We will use the general teapot rendering code */
fghTeapot( 10, size, GL_LINE );
}
/* 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 )
{
*/
void FGAPIENTRY glutSolidTeapot( GLdouble size )
{
+ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutSolidTeapot" );
/* We will use the general teapot rendering code */
fghTeapot( 7, size, GL_FILL );
}
/* We will use the general teapot rendering code */
fghTeapot( 7, size, GL_FILL );
}