summaryrefslogtreecommitdiff
path: root/tests/general/texgen.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-04-22 07:18:07 -0600
committerBrian Paul <brianp@vmware.com>2009-04-22 07:18:07 -0600
commitc5d4ca05024829ea2a50b832f313a3448841f443 (patch)
tree0ba540c2180c0ed1e2998b5ecb2c4a40883f115a /tests/general/texgen.c
parent2e84d1ef5a227abb3c080c983becba61c2cbdaac (diff)
Mac OS fixes for general tests.
Include GLUT/glut.h instead of GL/glut.h on Mac OS. All the general tests compile and run on Mac OS with this patch.
Diffstat (limited to 'tests/general/texgen.c')
-rw-r--r--tests/general/texgen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/general/texgen.c b/tests/general/texgen.c
index 42d882f61..ae4b22cc3 100644
--- a/tests/general/texgen.c
+++ b/tests/general/texgen.c
@@ -31,7 +31,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include <GL/glut.h>
+#endif
#include "piglit-util.h"