diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/SkGr.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp index befdc83bb0..60fcdd5139 100644 --- a/src/gpu/SkGr.cpp +++ b/src/gpu/SkGr.cpp @@ -394,7 +394,9 @@ GrTexture* GrGenerateMipMapsAndUploadToTexture(GrContext* ctx, const SkBitmap& b SkBudgeted::kYes, texels.get(), mipLevelCount); - texture->texturePriv().setGammaTreatment(gammaTreatment); + if (texture) { + texture->texturePriv().setGammaTreatment(gammaTreatment); + } return texture; } } |