diff options
Diffstat (limited to 'src/gpu/GrSWMaskHelper.cpp')
-rw-r--r-- | src/gpu/GrSWMaskHelper.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp index c05209137c..9682ec427f 100644 --- a/src/gpu/GrSWMaskHelper.cpp +++ b/src/gpu/GrSWMaskHelper.cpp @@ -203,13 +203,11 @@ void GrSWMaskHelper::DrawToTargetWithPathMask(GrTexture* texture, GrRect maskRect = GrRect::MakeWH(w / texture->width(), h / texture->height()); - const GrRect* srcRects[GrDrawState::kNumStages] = { NULL }; - srcRects[kPathMaskStage] = &maskRect; GrRect dstRect = GrRect::MakeLTRB( SK_Scalar1 * rect.fLeft, SK_Scalar1 * rect.fTop, SK_Scalar1 * rect.fRight, SK_Scalar1 * rect.fBottom); - target->drawRect(dstRect, NULL, srcRects, NULL); + target->drawRect(dstRect, NULL, &maskRect, NULL, kPathMaskStage); drawState->disableStage(kPathMaskStage); } |