Index: src/gpu/gl/GrGLProgram.cpp |
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp |
index dccd4bbd36214747d54c9fa69c92fe0239236b88..a695173f4c5fe11a9d5db3b4904b6c914d24f0b9 100644 |
--- a/src/gpu/gl/GrGLProgram.cpp |
+++ b/src/gpu/gl/GrGLProgram.cpp |
@@ -29,9 +29,10 @@ GrGLProgram* GrGLProgram::Create(GrGpuGL* gpu, |
const GrEffectStage* colorStages[], |
const GrEffectStage* coverageStages[]) { |
SkAutoTDelete<GrGLProgramBuilder> builder; |
- if (!desc.getHeader().fRequiresVertexShader && |
- gpu->glCaps().pathRenderingSupport() && |
- gpu->glPathRendering()->texturingMode() == GrGLPathRendering::FixedFunction_TexturingMode) { |
+ if (desc.getHeader().fUseFragShaderOnly) { |
+ SkASSERT(gpu->glCaps().pathRenderingSupport()); |
+ SkASSERT(gpu->glPathRendering()->texturingMode() == |
+ GrGLPathRendering::FixedFunction_TexturingMode); |
SkASSERT(NULL == geometryProcessor); |
builder.reset(SkNEW_ARGS(GrGLFragmentOnlyProgramBuilder, (gpu, desc))); |
} else { |