summaryrefslogtreecommitdiff
path: root/progs/tests/texcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/texcmp.c')
-rw-r--r--progs/tests/texcmp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/tests/texcmp.c b/progs/tests/texcmp.c
index 6e822fb689..52c504a318 100644
--- a/progs/tests/texcmp.c
+++ b/progs/tests/texcmp.c
@@ -7,7 +7,7 @@
#include <stdlib.h>
#include <math.h>
#include <string.h>
-#define GL_GLEXT_PROTOTYPES 1
+#include <GL/glew.h>
#include <GL/glut.h>
#include "readtex.c" /* I know, this is a hack. */
@@ -371,6 +371,7 @@ int main( int argc, char *argv[] )
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
if (glutCreateWindow(argv[0]) <= 0) {
+ glewInit();
printf("Couldn't create window\n");
exit(0);
}