projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding initialization checking to all GLUT interface functions and removing asserts...
[freeglut]
/
src
/
freeglut_ext.c
diff --git
a/src/freeglut_ext.c
b/src/freeglut_ext.c
index
04b3b6e
..
98473ef
100644
(file)
--- a/
src/freeglut_ext.c
+++ b/
src/freeglut_ext.c
@@
-190,6
+190,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;