Index: tests/GLProgramsTest.cpp |
=================================================================== |
--- tests/GLProgramsTest.cpp (revision 8762) |
+++ tests/GLProgramsTest.cpp (working copy) |
@@ -44,7 +44,7 @@ |
kAttribute_ColorInput == fCoverageInput); |
fCoverageAttributeIndex = (fCoverageInput == kAttribute_ColorInput) ? currAttribIndex++ : -1; |
- fColorFilterXfermode = random->nextULessThan(SkXfermode::kCoeffModesCnt); |
+ fColorFilterXfermode = random->nextULessThan(SkXfermode::kLastCoeffMode + 1); |
fFirstCoverageStage = random->nextULessThan(GrDrawState::kNumStages); |