Index: src/gpu/gl/GrGLProgramDesc.cpp |
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp |
index 4039eaf95cd858ad4493606ced84007e31da550d..6d62ff92bec3262e04968b1d8e00b2404b165a40 100644 |
--- a/src/gpu/gl/GrGLProgramDesc.cpp |
+++ b/src/gpu/gl/GrGLProgramDesc.cpp |
@@ -113,9 +113,9 @@ void GrGLProgramDesc::Build(const GrDrawState& drawState, |
int currEffectKey = 0; |
bool readsDst = false; |
bool readFragPosition = false; |
- // We use vertexshader-less shader programs only when drawing paths. |
- bool hasVertexCode = !(GrGpu::kDrawPath_DrawType == drawType || |
- GrGpu::kDrawPaths_DrawType == drawType); |
+ |
+ // Provide option for shader programs without vertex shader only when drawing paths. |
+ bool hasVertexCode = !GrGpu::IsPathRenderingDrawType(drawType); |
if (!skipColor) { |
for (int s = firstEffectiveColorStage; s < drawState.numColorStages(); ++s) { |