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

Matthew McClure mcclurem at vmware.com
Tue Jul 8 16:01:48 PDT 2014


Reviewed-by: Matthew McClure <mcclurem at vmware.com>

----- Original Message -----
From: "Brian Paul" <brianp at vmware.com>
To: piglit at lists.freedesktop.org
Sent: Tuesday, July 8, 2014 3:32:19 PM
Subject: [Piglit] [PATCH] clipflat: fix 0/2 index typo

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

_______________________________________________
Piglit mailing list
Piglit at lists.freedesktop.org
https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=Vlukj7htlXQOYRouhHnZbWXYcQvOJnTLOoZzNyO4nxE%3D%0A&m=BAvv3uupSUsDZ2cR%2BdhN%2BTaSkz8aLPpLrF4rMm7juBE%3D%0A&s=e709c0d73eb145c1388cf188ec22f4ae7c3f7f1ef957bccb1e7aadcbdf5765ca


More information about the Piglit mailing list