I find this slightly easier to read. --- tests/spec/gl-1.0/simple-readbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/spec/gl-1.0/simple-readbuffer.c b/tests/spec/gl-1.0/simple-readbuffer.c index b67a286..57fbce4 100644 --- a/tests/spec/gl-1.0/simple-readbuffer.c +++ b/tests/spec/gl-1.0/simple-readbuffer.c @@ -46,10 +46,10 @@ piglit_display(void) void piglit_init(int argc, char **argv) { - if (!piglit_use_fbo) - glReadBuffer(GL_FRONT); - else + if (piglit_use_fbo) glReadBuffer(GL_COLOR_ATTACHMENT0); + else + glReadBuffer(GL_FRONT); if (!piglit_check_gl_error(GL_NO_ERROR)) { piglit_report_result(PIGLIT_FAIL); -- 1.9.1 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit