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