projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvmpipe: still more bin code reorganization
[mesa.git]
/
progs
/
trivial
/
vbo-drawarrays.c
diff --git
a/progs/trivial/vbo-drawarrays.c
b/progs/trivial/vbo-drawarrays.c
index fb590098a32e0e33fcbabc5fb8782787cfebc9e4..c29954b90330b9b0f20422ff3f1a23539612d657 100644
(file)
--- a/
progs/trivial/vbo-drawarrays.c
+++ b/
progs/trivial/vbo-drawarrays.c
@@
-5,7
+5,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
-#
define GL_GLEXT_PROTOTYPES
+#
include <GL/glew.h>
#include <GL/glut.h>
#include <GL/glut.h>
@@
-124,6
+124,7
@@
int main( int argc, char *argv[] )
glutInitWindowSize( 250, 250 );
glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
glutCreateWindow(argv[0]);
glutInitWindowSize( 250, 250 );
glutInitDisplayMode( GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
glutCreateWindow(argv[0]);
+ glewInit();
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutDisplayFunc( Display );
glutReshapeFunc( Reshape );
glutKeyboardFunc( Key );
glutDisplayFunc( Display );