Actually fix angle GLPrograms test.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Feb 2013 15:44:21 +0000 (15:44 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 5 Feb 2013 15:44:21 +0000 (15:44 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@7578 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/GLProgramsTest.cpp

index 830f38d..1d8ec35 100644 (file)
@@ -111,7 +111,7 @@ bool GrGpuGL::programUnitTest(int maxStages) {
 
         GrEffectStage stages[GrDrawState::kNumStages];
 
-        for (int s = 0; s < GrDrawState::kNumStages; ++s) {
+        for (int s = 0; s < maxStages; ++s) {
             // enable the stage?
             if (random_bool(&random)) {
                 // use separate tex coords?