diff options
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index ba8be8c0e4..4e009ee731 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1438,7 +1438,9 @@ void apply_custom_stage(GrContext* context, GrAutoMatrix avm(context, GrMatrix::I()); GrContext::AutoRenderTarget art(context, dstTexture->asRenderTarget()); GrClip oldClip = context->getClip(); - context->setClip(rect); + + GrClip newClip(rect); + context->setClip(newClip); GrMatrix sampleM; sampleM.setIDiv(srcTexture->width(), srcTexture->height()); |