[Piglit] [PATCH] clipflat: fix 0/2 index typo

Brian Paul brianp at vmware.com
Tue Jul 8 15:32:19 PDT 2014


Spotted by Meng-Lin Wu.
---
 tests/general/clipflat.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/general/clipflat.c b/tests/general/clipflat.c
index 37a40af..03a069c 100644
--- a/tests/general/clipflat.c
+++ b/tests/general/clipflat.c
@@ -295,7 +295,7 @@ checkResult(GLfloat badColor[3])
 			}
 			else if (image[k + 0] == 0 &&
 				 image[k + 1] >= 254 &&
-				 image[k + 0] == 0) {
+				 image[k + 2] == 0) {
 				// green - OK
 				anyGreen = true;
 			}
-- 
1.7.10.4



More information about the Piglit mailing list