diff options
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r-- | tests/GLProgramsTest.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp index 53af430974..55c4c0919f 100644 --- a/tests/GLProgramsTest.cpp +++ b/tests/GLProgramsTest.cpp @@ -118,8 +118,6 @@ void GrGLProgramDesc::setRandom(SkMWCRandom* random, bool GrGpuGL::programUnitTest(int maxStages) { - maxStages = GrMin(maxStages, (int)GrDrawState::kNumStages); - GrTextureDesc dummyDesc; dummyDesc.fFlags = kRenderTarget_GrTextureFlagBit; dummyDesc.fConfig = kSkia8888_GrPixelConfig; @@ -207,7 +205,7 @@ static void GLProgramsTest(skiatest::Reporter* reporter, GrContextFactory* facto GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type)); if (NULL != context) { GrGpuGL* gpu = static_cast<GrGpuGL*>(context->getGpu()); - int maxStages = GrDrawState::kNumStages; + int maxStages = 6; #if SK_ANGLE // Some long shaders run out of temporary registers in the D3D compiler on ANGLE. if (type == GrContextFactory::kANGLE_GLContextType) { |