summaryrefslogtreecommitdiffstats
path: root/progs/trivial/tri-tex-3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/trivial/tri-tex-3d.c')
-rw-r--r--progs/trivial/tri-tex-3d.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/trivial/tri-tex-3d.c b/progs/trivial/tri-tex-3d.c
index 613803fd1b1..4f276af653f 100644
--- a/progs/trivial/tri-tex-3d.c
+++ b/progs/trivial/tri-tex-3d.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <GL/glew.h>
#include <GL/glut.h>
@@ -156,10 +157,12 @@ int main(int argc, char **argv)
type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE;
glutInitDisplayMode(type);
- if (glutCreateWindow("First Tri") == GL_FALSE) {
+ if (glutCreateWindow(*argv) == GL_FALSE) {
exit(1);
}
+ glewInit();
+
Init();
glutReshapeFunc(Reshape);