[Piglit] [PATCH 5/8] piglit_fbo_framework - don't even try for OpenGL ES 1.X
Daniel Kurtz
djkurtz at chromium.org
Mon Jan 6 08:02:40 PST 2014
glGenFramebuffers is not supported for OpenGL ES 1.X, so init_gl is
hard coded to always fail for ES1. Thus, there is no way to use a
fbo_framework w/ ES1. In this case, just fail faster in
piglit_fbo_framework_create() instead of first initializing a wfl
framework, just to destroy it again in the failure path.
Signed-off-by: Daniel Kurtz <djkurtz at chromium.org>
---
tests/util/piglit-framework-gl/piglit_fbo_framework.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/util/piglit-framework-gl/piglit_fbo_framework.c b/tests/util/piglit-framework-gl/piglit_fbo_framework.c
index 219b80d..d27706e 100644
--- a/tests/util/piglit-framework-gl/piglit_fbo_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_fbo_framework.c
@@ -128,6 +128,9 @@ init_gl(struct piglit_wfl_framework *wfl_fw)
struct piglit_gl_framework*
piglit_fbo_framework_create(const struct piglit_gl_test_config *test_config)
{
+#ifdef PIGLIT_USE_OPENGL_ES1
+ return false;
+#else
struct piglit_wfl_framework *wfl_fw;
struct piglit_gl_framework *gl_fw;
@@ -158,4 +161,5 @@ piglit_fbo_framework_create(const struct piglit_gl_test_config *test_config)
fail:
destroy(gl_fw);
return NULL;
+#endif /* PIGLIT_USE_OPENGL_ES1 */
}
--
1.8.5.1
More information about the Piglit
mailing list