[Piglit] [PATCH 5/8] piglit: add GLES1 support to gl_wrap.h
Chia-I Wu
olvaffe at gmail.com
Sat Sep 3 09:29:28 PDT 2011
Use GLES1 headers when USE_OPENGL_ES1 is defined.
---
src/piglit/gl_wrap.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h
index eb3de29..dc0afe8 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>
--
1.7.5.4
More information about the Piglit
mailing list