summaryrefslogtreecommitdiffstats
path: root/progs/tests/mapvbo.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/tests/mapvbo.c')
-rw-r--r--progs/tests/mapvbo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progs/tests/mapvbo.c b/progs/tests/mapvbo.c
index 49e120de73c..c392e768358 100644
--- a/progs/tests/mapvbo.c
+++ b/progs/tests/mapvbo.c
@@ -10,9 +10,9 @@
*/
-#define GL_GLEXT_PROTOTYPES
#include <stdio.h>
#include <stdlib.h>
+#include <GL/glew.h>
#include <GL/glut.h>
static GLuint BufferID;
@@ -129,6 +129,7 @@ int main( int argc, char *argv[] )
glutInitWindowSize( 300, 300 );
glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
Win = glutCreateWindow(argv[0]);
+ glewInit();
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutDisplayFunc( Display );