Index: src/gpu/gl/builders/GrGLProgramBuilder.cpp |
diff --git a/src/gpu/gl/builders/GrGLProgramBuilder.cpp b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
index 41b84d806ab3a1b075e675acfd853f27eb2e3a2a..58ef36166aa0ead3481211c9bf9b51fe022e7131 100644 |
--- a/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
+++ b/src/gpu/gl/builders/GrGLProgramBuilder.cpp |
@@ -51,6 +51,8 @@ bool GrGLProgramBuilder::genProgram(const GrEffectStage* colorStages[], |
"Color", |
&name); |
inputColor = GrGLSLExpr4(name); |
+ } else if (GrGLProgramDesc::kAllOnes_ColorInput == header.fColorInput) { |
+ inputColor = GrGLSLExpr4(1); |
} |
if (GrGLProgramDesc::kUniform_ColorInput == header.fCoverageInput) { |
@@ -61,7 +63,7 @@ bool GrGLProgramBuilder::genProgram(const GrEffectStage* colorStages[], |
"Coverage", |
&name); |
inputCoverage = GrGLSLExpr4(name); |
- } else if (GrGLProgramDesc::kSolidWhite_ColorInput == header.fCoverageInput) { |
+ } else if (GrGLProgramDesc::kAllOnes_ColorInput == header.fCoverageInput) { |
inputCoverage = GrGLSLExpr4(1); |
} |