Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index 1b309abd0aa0905912a24d01e5c7ac47a860513f..05c70ebff49d1e28df9be0d57d81ce8b473395f8 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -392,10 +392,11 @@ bool SkLightingImageFilterInternal::filterImageGPU(Proxy* proxy, |
SkRect bottom = SkRect::MakeXYWH(1, dstRect.height() - 1, dstRect.width() - 2, 1); |
SkRect bottomRight = SkRect::MakeXYWH(dstRect.width() - 1, dstRect.height() - 1, 1, 1); |
- GrDrawContext* drawContext = context->drawContext(); |
+ GrDrawContext* drawContext = context->drawContext(dst->asRenderTarget()); |
if (!drawContext) { |
return false; |
} |
+ drawContext->uses(srcTexture); |
this->drawRect(drawContext, srcTexture, dst, matrix, clip, topLeft, kTopLeft_BoundaryMode, |
bounds); |