From 48bc79194b52460e712a620dcf845e4836941c2b Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 2 Aug 2013 19:54:28 +0000 Subject: [PATCH] correctly copy constant coverage from GrPaint to GrDrawState R=robertphillips@google.com Review URL: https://codereview.chromium.org/21924006 git-svn-id: http://skia.googlecode.com/svn/trunk@10522 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrDrawState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp index ab800d2..0a56757 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()); -- 2.7.4