Index: src/gpu/GrTexture.cpp |
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp |
index 30dbbb659a32558b06e53b57384d1466a3c1ec5e..6bd458674bdad8c499ce234adb2f446576c382ee 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 (kCached_LifeCycle == lifeCycle) { |
+ if (kWrapped_LifeCycle != lifeCycle) { |
GrScratchKey key; |
GrTexturePriv::ComputeScratchKey(desc, &key); |
this->setScratchKey(key); |