progs/tests: also test stencil INCR_WRAP mode if supported
[mesa.git] / progs / tests / zdrawpix.c
index dd222e7dd0b18d5e1ccf1f97e2b41a28c4c605bd..ba7da571ebf54f3d71a53cba284d2102c09f1fd2 100644 (file)
  * Press 'd' to view the Z buffer as a grayscale image.
  */
 
-#define GL_GLEXT_PROTOTYPES
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 #include "../util/showbuffer.c"
 
@@ -180,6 +180,7 @@ main(int argc, char *argv[])
    glutInitWindowSize(400, 400);
    glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
    Win = glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc(Reshape);
    glutKeyboardFunc(Key);
    glutSpecialFunc(SpecialKey);