Re: [Piglit] [PATCH 4/4] simple-readbuffer: simplify a conditional

2017-10-13 Thread Eric Anholt
Brian Paul  writes:

> I find this slightly easier to read.

Series is:

Reviewed-by: Eric Anholt 


signature.asc
Description: PGP signature
___
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit


[Piglit] [PATCH 4/4] simple-readbuffer: simplify a conditional

2017-10-12 Thread Brian Paul
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