aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index 830f38db12..1d8ec35dc9 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -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?