progs/trivial: Use glew where needed.
[mesa.git] / progs / trivial / tri-tex-3d.c
index 6a9d1d1bf6d4f17feeacd89c54be5387b81f3b5d..50f6a754189843b1cf7709c72219cf2e1c8e6b4d 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -152,7 +153,7 @@ int main(int argc, char **argv)
 
     glutInitWindowPosition(0, 0); glutInitWindowSize( 250, 250);
 
-    type = GLUT_RGB;
+    type = GLUT_RGB | GLUT_ALPHA;
     type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
     glutInitDisplayMode(type);
 
@@ -160,6 +161,8 @@ int main(int argc, char **argv)
        exit(1);
     }
 
+    glewInit();
+
     Init();
 
     glutReshapeFunc(Reshape);