Index: src/effects/SkBlurImageFilter.cpp |
diff --git a/src/effects/SkBlurImageFilter.cpp b/src/effects/SkBlurImageFilter.cpp |
index 692b6c9b80624f3023b268bf852554dfc5656f6b..60d8d17cdf160fe1348be98a62674fb1976901a6 100644 |
--- a/src/effects/SkBlurImageFilter.cpp |
+++ b/src/effects/SkBlurImageFilter.cpp |
@@ -94,7 +94,7 @@ sk_sp<SkSpecialImage> SkBlurImageFilter::onFilterImage(SkSpecialImage* source, |
const SkVector sigma = map_sigma(fSigma, ctx.ctm()); |
#if SK_SUPPORT_GPU |
- if (input->peekTexture()) { |
+ if (input->peekTexture() && input->peekTexture()->getContext()) { |
if (0 == sigma.x() && 0 == sigma.y()) { |
offset->fX = inputBounds.x(); |
offset->fY = inputBounds.y(); |