[Piglit] [PATCH 4/4] simple-readbuffer: simplify a conditional
Brian Paul
brianp at vmware.com
Fri Oct 13 04:24:19 UTC 2017
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
More information about the Piglit
mailing list