summaryrefslogtreecommitdiffstats
path: root/progs/redbook/mvarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/redbook/mvarray.c')
-rw-r--r--progs/redbook/mvarray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/mvarray.c b/progs/redbook/mvarray.c
index cbc3937ee94..1022723ad94 100644
--- a/progs/redbook/mvarray.c
+++ b/progs/redbook/mvarray.c
@@ -46,8 +46,7 @@
* specifically the OpenGL routine glMultiDrawElements().
*/
-#define GL_GLEXT_PROTOTYPES
-
+#include <GL/glew.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
@@ -118,6 +117,7 @@ int main(int argc, char** argv)
glutInitWindowSize (350, 350);
glutInitWindowPosition (100, 100);
glutCreateWindow (argv[0]);
+ glewInit();
init ();
glutDisplayFunc(display);
glutReshapeFunc(reshape);