Index: src/gpu/GrDrawState.cpp |
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp |
index ab800d24e7c1c74268a02312caec8dc3d7b65d4a..0a567573cb8aa758bfc0dad361449c8229eb1be1 100644 |
--- a/src/gpu/GrDrawState.cpp |
+++ b/src/gpu/GrDrawState.cpp |
@@ -46,7 +46,6 @@ void GrDrawState::setFromPaint(const GrPaint& paint, const SkMatrix& vm, GrRende |
// These have no equivalent in GrPaint, set them to defaults |
fCommon.fBlendConstant = 0x0; |
- fCommon.fCoverage = 0xffffffff; |
fCommon.fDrawFace = kBoth_DrawFace; |
fCommon.fStencilSettings.setDisabled(); |
this->resetStateFlags(); |
@@ -55,6 +54,7 @@ void GrDrawState::setFromPaint(const GrPaint& paint, const SkMatrix& vm, GrRende |
this->enableState(GrDrawState::kClip_StateBit); |
this->setColor(paint.getColor()); |
+ this->setCoverage4(paint.getCoverage()); |
this->setState(GrDrawState::kDither_StateBit, paint.isDither()); |
this->setState(GrDrawState::kHWAntialias_StateBit, paint.isAntiAlias()); |