summaryrefslogtreecommitdiff
path: root/progs/redbook/texture3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/redbook/texture3d.c')
-rw-r--r--progs/redbook/texture3d.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/redbook/texture3d.c b/progs/redbook/texture3d.c
index 9f57e08c6d..c7b77c1cae 100644
--- a/progs/redbook/texture3d.c
+++ b/progs/redbook/texture3d.c
@@ -46,6 +46,7 @@
* with different texture coordinates to obtain different
* "slices" of the 3D texture.
*/
+#include <GL/glew.h>
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
@@ -142,6 +143,7 @@ int main(int argc, char** argv)
glutInitWindowSize(250, 250);
glutInitWindowPosition(100, 100);
glutCreateWindow(argv[0]);
+ glewInit();
init();
glutReshapeFunc(reshape);
glutDisplayFunc(display);