summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-04-24 16:13:30 -0600
committerBrian Paul <brianp@vmware.com>2009-04-24 16:13:30 -0600
commit5d9df119f1156e9468d53ea5a1c4848602984eb9 (patch)
treef049e88fa28fadbd38295dc9fc6e6f872097447d
parentebba94441a1464fc772d55ba440847a360d9d7c1 (diff)
Mac OS fixes for fbo tests
Include GLUT/glut.h instead of GL/glut.h on Mac OS. With this patch, all the fbo tests compile and run on Mac OS.
-rw-r--r--tests/fbo/fbo-3d.c4
-rw-r--r--tests/fbo/fbo-cubemap.c4
-rw-r--r--tests/fbo/fbo-readpixels.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/fbo/fbo-3d.c b/tests/fbo/fbo-3d.c
index de77e0aaf..dfc5d2747 100644
--- a/tests/fbo/fbo-3d.c
+++ b/tests/fbo/fbo-3d.c
@@ -32,7 +32,11 @@
*/
#define GL_GLEXT_PROTOTYPES
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>
diff --git a/tests/fbo/fbo-cubemap.c b/tests/fbo/fbo-cubemap.c
index 54ad50b13..2462ec70d 100644
--- a/tests/fbo/fbo-cubemap.c
+++ b/tests/fbo/fbo-cubemap.c
@@ -32,7 +32,11 @@
*/
#define GL_GLEXT_PROTOTYPES
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>
diff --git a/tests/fbo/fbo-readpixels.c b/tests/fbo/fbo-readpixels.c
index 26ed37977..0581cd5da 100644
--- a/tests/fbo/fbo-readpixels.c
+++ b/tests/fbo/fbo-readpixels.c
@@ -32,7 +32,11 @@
*/
#define GL_GLEXT_PROTOTYPES
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
#include "GL/glut.h"
+#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>