Index: tests/GLProgramsTest.cpp |
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp |
index ed74ae8f6a65ae828a3c0727580ae1622d6b03db..26c86c5bac9930c3fce582b65fbfa3f374260f0e 100644 |
--- a/tests/GLProgramsTest.cpp |
+++ b/tests/GLProgramsTest.cpp |
@@ -153,7 +153,6 @@ static void set_random_color_coverage_stages(GrGLGpu* gpu, |
int numProcs = random->nextULessThan(maxStages + 1); |
int numColorProcs = random->nextULessThan(numProcs + 1); |
- int currTextureCoordSet = 0; |
for (int s = 0; s < numProcs;) { |
SkAutoTUnref<const GrFragmentProcessor> fp( |
GrProcessorTestFactory<GrFragmentProcessor>::CreateStage(random, |
@@ -162,18 +161,6 @@ static void set_random_color_coverage_stages(GrGLGpu* gpu, |
dummyTextures)); |
SkASSERT(fp); |
- // If adding this effect would exceed the max texture coord set count then generate a |
- // new random effect. |
- if (usePathRendering && gpu->glPathRendering()->texturingMode() == |
- GrGLPathRendering::FixedFunction_TexturingMode) {; |
- int numTransforms = fp->numTransforms(); |
- if (currTextureCoordSet + numTransforms > |
- gpu->glCaps().maxFixedFunctionTextureCoords()) { |
- continue; |
- } |
- currTextureCoordSet += numTransforms; |
- } |
- |
// finally add the stage to the correct pipeline in the drawstate |
if (s < numColorProcs) { |
pipelineBuilder->addColorProcessor(fp); |