progs/trivial: Use glew where needed.
[mesa.git] / progs / trivial / tri-tex-3d.c
index 613803fd1b1920eaf5c13b5678ef3997d1dc8ba3..50f6a754189843b1cf7709c72219cf2e1c8e6b4d 100644 (file)
@@ -25,6 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -160,6 +161,8 @@ int main(int argc, char **argv)
        exit(1);
     }
 
+    glewInit();
+
     Init();
 
     glutReshapeFunc(Reshape);