aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-02-26 01:48:24 -0800
committerVinson Lee <vlee@vmware.com>2011-02-26 01:48:24 -0800
commitbf87bd6c2fbded30b3de2e557473ca3cf3d04bb6 (patch)
treef25a0dbec41fccf71093163c467427ba2afaf271 /src
parentee61936b58414df50b32455aaa5eca11399dba63 (diff)
downloadpiglit-bf87bd6c2fbded30b3de2e557473ca3cf3d04bb6.tar.gz
piglit: Add correct location of Mac OS X OpenGL header files.
The OpenGL header files on Mac OS X are in the OpenGL framework.
Diffstat (limited to 'src')
-rw-r--r--src/piglit/gl_wrap.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h
index 7d77f7f9..cf68c737 100644
--- a/src/piglit/gl_wrap.h
+++ b/src/piglit/gl_wrap.h
@@ -41,9 +41,15 @@ extern "C" {
#ifdef USE_OPENGL
# include "glew.h"
/* Include the real headers too, in case GLEW misses something. */
-# include <GL/gl.h>
-# include <GL/glu.h>
-# include <GL/glext.h>
+# ifdef __APPLE__
+# include <OpenGL/gl.h>
+# include <OpenGL/glu.h>
+# include <OpenGL/glext.h>
+# else
+# include <GL/gl.h>
+# include <GL/glu.h>
+# include <GL/glext.h>
+# endif
#endif
#ifdef USE_OPENGL_ES2