| Index: src/gpu/GrTexture.cpp
|
| diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
|
| index 6bd458674bdad8c499ce234adb2f446576c382ee..4b43fc8513765923b0cb9b302649c6b03c8b8e76 100644
|
| --- a/src/gpu/GrTexture.cpp
|
| +++ b/src/gpu/GrTexture.cpp
|
| @@ -87,7 +87,7 @@ GrTexture::GrTexture(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc)
|
| : INHERITED(gpu, lifeCycle, desc)
|
| , fMipMapsStatus(kNotAllocated_MipMapsStatus) {
|
|
|
| - if (kWrapped_LifeCycle != lifeCycle) {
|
| + if (kWrapped_LifeCycle != lifeCycle && !GrPixelConfigIsCompressed(desc.fConfig)) {
|
| GrScratchKey key;
|
| GrTexturePriv::ComputeScratchKey(desc, &key);
|
| this->setScratchKey(key);
|
|
|