progs/tests: also test stencil INCR_WRAP mode if supported
[mesa.git] / progs / tests / rubberband.c
index a8e64bc091617f548482aefa5e3596ddb048d42b..866a0f519e50aa513f909af68b26c288942d2696 100644 (file)
@@ -2,10 +2,10 @@
  * Test rubber-band selection box w/ logicops and blend.
  */
 
-#define GL_GLEXT_PROTOTYPES
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 #include "readtex.c"
 
@@ -232,6 +232,7 @@ main(int argc, char *argv[])
    glutInitWindowSize(Width, Height);
    glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE);
    Win = glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc(Reshape);
    glutKeyboardFunc(Key);
    glutSpecialFunc(SpecialKey);