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
/
vp-tri-cb-pos.c
diff --git
a/progs/trivial/vp-tri-cb-pos.c
b/progs/trivial/vp-tri-cb-pos.c
index eb3aa0a8dc6cab5483241600fd0f510dbfeb2955..42bf9806b19ef7ecd93a75f6e3d9f3d03006cc2a 100644
(file)
--- a/
progs/trivial/vp-tri-cb-pos.c
+++ b/
progs/trivial/vp-tri-cb-pos.c
@@
-5,7
+5,7
@@
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
-#
define GL_GLEXT_PROTOTYPES
+#
include <GL/glew.h>
#include <GL/glut.h>
#include <GL/glut.h>
@@
-142,15
+142,17
@@
int main(int argc, char **argv)
type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
glutInitDisplayMode(type);
type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
glutInitDisplayMode(type);
- if (glutCreateWindow(
"First Tri"
) == GL_FALSE) {
+ if (glutCreateWindow(
*argv
) == GL_FALSE) {
exit(1);
}
exit(1);
}
+ glewInit();
+
Init();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Draw);
glutMainLoop();
Init();
glutReshapeFunc(Reshape);
glutKeyboardFunc(Key);
glutDisplayFunc(Draw);
glutMainLoop();
-
return 0;
+ return 0;
}
}