diff options
Diffstat (limited to 'src/gpu/GrContext.cpp')
-rw-r--r-- | src/gpu/GrContext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index 0a3ab422b6..213731935d 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -769,13 +769,12 @@ void GrContext::setupOffscreenAAPass1(GrDrawTarget* target, GrRenderTarget* offRT = record->fOffscreen.texture()->asRenderTarget(); GrAssert(NULL != offRT); - GrDrawState* drawState = target->drawState(); GrMatrix vm = drawState->getViewMatrix(); drawState->reset(); *drawState->viewMatrix() = vm; drawState->setRenderTarget(offRT); - + #if PREFER_MSAA_OFFSCREEN_AA drawState->enableState(GrDrawState::kHWAntialias_StateBit); #endif @@ -796,6 +795,8 @@ void GrContext::setupOffscreenAAPass1(GrDrawTarget* target, GrIRect clear = SkIRect::MakeWH(record->fScale * w, record->fScale * h); target->setClip(GrClip(clear)); + drawState->enableState(GrDrawState::kClip_StateBit); + #if 0 // visualize tile boundaries by setting edges of offscreen to white // and interior to tranparent. black. |