Index: src/gpu/GrTextureParamsAdjuster.cpp |
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp |
index a68c3d76571a1f02141895eb8fa4961038169eef..1657fb9b95ca5474bae0c635bc1ad728669733a0 100644 |
--- a/src/gpu/GrTextureParamsAdjuster.cpp |
+++ b/src/gpu/GrTextureParamsAdjuster.cpp |
@@ -165,6 +165,11 @@ GrTexture* GrTextureAdjuster::refTextureSafeForParams(const GrTextureParams& par |
CopyParams copyParams; |
const SkIRect* contentArea = this->contentAreaOrNull(); |
+ if (!context) { |
+ // The texture was abandoned. |
+ return nullptr; |
+ } |
+ |
if (contentArea && GrTextureParams::kMipMap_FilterMode == params.filterMode()) { |
// If we generate a MIP chain for texture it will read pixel values from outside the content |
// area. |