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