If the test is configured with config.requires_displayed_window = true
we shouldn't create an fbo if the -fbo option is given.

Fixes "drawbuffer-modes -auto -fbo" failure, for example.
---
 tests/util/piglit-framework-gl/piglit_gl_framework.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit-framework-gl/piglit_gl_framework.c 
b/tests/util/piglit-framework-gl/piglit_gl_framework.c
index 845baa1..37c0677 100644
--- a/tests/util/piglit-framework-gl/piglit_gl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_gl_framework.c
@@ -44,7 +44,7 @@ piglit_gl_framework_factory(const struct 
piglit_gl_test_config *test_config)
 #ifdef PIGLIT_USE_WAFFLE
        struct piglit_gl_framework *gl_fw = NULL;
 
-       if (piglit_use_fbo) {
+       if (piglit_use_fbo && !test_config->requires_displayed_window) {
                gl_fw = piglit_fbo_framework_create(test_config);
        }
 
-- 
1.9.1

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to