Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index cf32cf5cb046428c7fa5b8ca4667b3476a185594..c876d5f6b3759b89505d114ec6fd292636b667d1 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -132,6 +132,9 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, |
desc.fConfig = kSkia8888_GrPixelConfig; |
GrAutoScratchTexture ast(context, desc); |
+ if (NULL == ast.texture()) { |
+ return false; |
+ } |
SkAutoTUnref<GrTexture> dst(ast.detach()); |
GrContext::AutoRenderTarget art(context, dst->asRenderTarget()); |