progs/tests: compile with SCons and glew
[mesa.git] / progs / tests / vptest2.c
index 2158e07f04247577131614844e2e855d0119a7f4..4161b03a673583467f5799f9c590036627233a7f 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
-#define GL_GLEXT_PROTOTYPES
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -140,6 +140,7 @@ int main( int argc, char *argv[] )
    glutInitWindowSize( 50, 50 );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH );
    glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
    glutDisplayFunc( Display );