[Piglit] [PATCH] getactiveattrib: fix jumbled for-loop test

Brian Paul brianp at vmware.com
Tue Dec 13 05:52:43 PST 2011


---
 tests/general/getactiveattrib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/general/getactiveattrib.c b/tests/general/getactiveattrib.c
index 0b11747..8fb3e26 100644
--- a/tests/general/getactiveattrib.c
+++ b/tests/general/getactiveattrib.c
@@ -507,7 +507,7 @@ do_test(const struct test *tests, unsigned num_tests)
 			visited_count[attr_idx]++;
 		}
 
-		for (j = 0; j < tests[i].attributes[j].name != NULL; j++) {
+		for (j = 0; tests[i].attributes[j].name != NULL; j++) {
 			if (tests[i].attributes[j].must_be_active
 			    && visited_count[j] == 0) {
 				DUMP_SHADER(tests[i].code);
-- 
1.7.3.4



More information about the Piglit mailing list