progs/trivial: Use glew where needed.
[mesa.git] / progs / trivial / tri-fp.c
index 9ff355a4caf345712b35d455fd3641e5f60853d5..fcf57f5a85ff77e7c81d469de5e299e0bf6a27c2 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
-#define GL_GLEXT_PROTOTYPES
+#include <GL/glew.h>
 #include <GL/glut.h>
 
 
@@ -157,6 +157,8 @@ int main(int argc, char **argv)
        exit(1);
     }
 
+    glewInit();
+
     Init();
 
     glutReshapeFunc(Reshape);