progs/tests: also test stencil INCR_WRAP mode if supported
[mesa.git] / progs / tests / bug_texstore_i8.c
index f8dac210f7a87d9cd694f375b949d5ff6a45532e..b070011bd2ea452b6fdb18a46659b78c529a9d15 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 static GLenum Target = GL_TEXTURE_2D;
@@ -72,7 +73,7 @@ static void Init(void)
                        0,
                        sourceFormat,
                        GL_UNSIGNED_BYTE,
-                       //GL_UNSIGNED_INT,
+                       /* GL_UNSIGNED_INT, */
                        tex2d);
 
                glEnable(Target);
@@ -180,6 +181,7 @@ int main(int argc, char **argv)
        glutInitDisplayMode(type);
 
        win = glutCreateWindow("Tex test");
+        glewInit();
        if (!win) {
                exit(1);
        }