st/xorg: Work around cursor reference counting bugs in older X servers.
[mesa.git] / progs / tests / seccolor.c
index 77fd40647ba63cf761a5a02503e2fa8b047d17e1..f1ba314ef077ddc183d5bd0d8994caa3d693fe09 100644 (file)
@@ -3,10 +3,10 @@
  */
 
 
-#define GL_GLEXT_PROTOTYPES
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 static int Width = 600;
@@ -136,6 +136,7 @@ int main( int argc, char *argv[] )
    glutInitWindowSize( Width, Height );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
    glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc( Reshape );
    glutKeyboardFunc( Key );
    glutDisplayFunc( Display );