summaryrefslogtreecommitdiffstats
path: root/progs/tests/dinoshade.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-03-10 13:11:23 +0000
committerKeith Whitwell <keithw@vmware.com>2009-03-10 13:11:23 +0000
commita58065d4e2fc29644d804c92be773731242664c5 (patch)
treea5a7387d97c3b4a2f4138769ab90cce54e9156df /progs/tests/dinoshade.c
parent225de01f83b58a09adfad47a5d71bece63a6ebfd (diff)
downloadexternal_mesa3d-a58065d4e2fc29644d804c92be773731242664c5.zip
external_mesa3d-a58065d4e2fc29644d804c92be773731242664c5.tar.gz
external_mesa3d-a58065d4e2fc29644d804c92be773731242664c5.tar.bz2
progs/tests: compile with SCons and glew
Also get mingw cross-compilation of these tests working
Diffstat (limited to 'progs/tests/dinoshade.c')
-rw-r--r--progs/tests/dinoshade.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/tests/dinoshade.c b/progs/tests/dinoshade.c
index 44115b9..fb7c3f4 100644
--- a/progs/tests/dinoshade.c
+++ b/progs/tests/dinoshade.c
@@ -43,6 +43,7 @@
#include <windows.h>
#endif
#define GL_GLEXT_LEGACY
+#include <GL/glew.h> /* OpenGL Utility Toolkit header */
#include <GL/glut.h> /* OpenGL Utility Toolkit header */
/* Some <math.h> files do not define M_PI... */
@@ -823,6 +824,7 @@ main(int argc, char **argv)
#endif
glutCreateWindow("Shadowy Leapin' Lizards");
+ glewInit();
if (glutGet(GLUT_WINDOW_STENCIL_SIZE) <= 1) {
printf("dinoshade: Sorry, I need at least 2 bits of stencil.\n");