Index: src/gpu/GrDrawState.cpp |
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp |
index 07243fc9a8b04025e06a84db7df7c8b9342640cc..f967a6fa76182d536bd9aba26221c685335c7896 100644 |
--- a/src/gpu/GrDrawState.cpp |
+++ b/src/gpu/GrDrawState.cpp |
@@ -404,7 +404,7 @@ |
if (this->hasCoverageVertexAttribute()) { |
inout.fValidFlags = 0; |
} else { |
- inout.fColor = this->getCoverageColor(); |
+ inout.fColor = fCoverage; |
inout.fValidFlags = kRGBA_GrColorComponentFlags; |
} |
@@ -413,7 +413,6 @@ |
const GrGeometryProcessor* gp = fGeometryProcessor->getGeometryProcessor(); |
gp->computeInvariantOutput(&inout); |
} |
- |
for (int s = 0; s < this->numCoverageStages(); ++s) { |
const GrProcessor* processor = this->getCoverageStage(s).getProcessor(); |
processor->computeInvariantOutput(&inout); |
@@ -641,8 +640,8 @@ |
//////////////////////////////////////////////////////////////////////////////// |
GrDrawState::BlendOptFlags GrDrawState::getBlendOpts(bool forceCoverage, |
- GrBlendCoeff* srcCoeff, |
- GrBlendCoeff* dstCoeff) const { |
+ GrBlendCoeff* srcCoeff, |
+ GrBlendCoeff* dstCoeff) const { |
GrBlendCoeff bogusSrcCoeff, bogusDstCoeff; |
if (NULL == srcCoeff) { |
srcCoeff = &bogusSrcCoeff; |