summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2011-09-05 10:44:57 +0800
committerPaul Berry <stereotype441@gmail.com>2011-09-09 11:21:31 -0700
commitd6cfe15bfe4b76deceec3235b777225afd021e7e (patch)
tree67024930a9069edf25e2dfa6db28308ff6cd6814 /src
parent85a7ab78865a66814ff3206d0c9fdb25bda17980 (diff)
piglit: add GLES1 support to gl_wrap.h
Use GLES1 headers when USE_OPENGL_ES1 is defined. Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/piglit/gl_wrap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h
index eb3de29d9..dc0afe87d 100644
--- a/src/piglit/gl_wrap.h
+++ b/src/piglit/gl_wrap.h
@@ -29,7 +29,7 @@
* \brief Convenience header that includes the actual OpenGL headers.
*
* The actual OpenGL headers are chosen according to the macro definitions
- * USE_OPENGL and USE_OPENGL_ES2.
+ * USE_OPENGL, USE_OPENGL_ES1, and USE_OPENGL_ES2.
*/
#pragma once
@@ -56,6 +56,11 @@ extern "C" {
# endif
#endif
+#ifdef USE_OPENGL_ES1
+# include <GLES/gl.h>
+# include <GLES/glext.h>
+#endif
+
#ifdef USE_OPENGL_ES2
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>