progs/tests: also test stencil INCR_WRAP mode if supported
[mesa.git] / progs / tests / zcomp.c
index b53079d07fca1d461879bc198fcf65b58ca66eb2..d6b9c0702236f0451f6484b26b93f5e43318f679 100644 (file)
@@ -2,12 +2,11 @@
  * Test Z compositing with glDrawPixels(GL_DEPTH_COMPONENT) and stencil test.
  */
 
-#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"
 
 
 static int Win;
@@ -211,6 +210,7 @@ main(int argc, char *argv[])
    glutInitWindowSize(Width, Height);
    glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH | GLUT_STENCIL);
    Win = glutCreateWindow(argv[0]);
+   glewInit();
    glutReshapeFunc(Reshape);
    glutKeyboardFunc(Key);
    glutSpecialFunc(SpecialKey);