Index: src/gpu/gl/GrGLProgramDesc.cpp |
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp |
index 74f669f2e317a06ba616d582bcc2cf54f3993529..37e1596638bb6ae76f3dae39c6d6b051fca44cea 100644 |
--- a/src/gpu/gl/GrGLProgramDesc.cpp |
+++ b/src/gpu/gl/GrGLProgramDesc.cpp |
@@ -147,10 +147,10 @@ static bool get_meta_key(const GrProcessor& proc, |
} |
bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, |
- const GrProgramDesc::DescInfo& descInfo, |
GrGpu::DrawType drawType, |
GrGpuGL* gpu, |
GrProgramDesc* desc) { |
+ const GrProgramDesc::DescInfo& descInfo = optState.descInfo(); |
bool inputColorIsUsed = descInfo.fInputColorIsUsed; |
bool inputCoverageIsUsed = descInfo.fInputCoverageIsUsed; |
@@ -196,8 +196,6 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, |
header->fHasGeometryProcessor = optState.hasGeometryProcessor(); |
- header->fEmitsPointSize = GrGpu::kDrawPoints_DrawType == drawType; |
- |
bool isPathRendering = GrGpu::IsPathRenderingDrawType(drawType); |
if (gpu->caps()->pathRenderingSupport() && isPathRendering) { |
header->fUseNvpr = true; |