| Index: src/gpu/GrTexture.cpp
|
| diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
|
| index 28746b93056fa4361230f5e973814f24d60b4c36..2211e68a4da4572b9da543caa11c1ed82e103106 100644
|
| --- a/src/gpu/GrTexture.cpp
|
| +++ b/src/gpu/GrTexture.cpp
|
| @@ -92,7 +92,8 @@ GrTexture::GrTexture(GrGpu* gpu, LifeCycle lifeCycle, const GrSurfaceDesc& desc,
|
| : INHERITED(gpu, lifeCycle, desc)
|
| , fSamplerType(samplerType) {
|
| if (!this->isExternal() && !GrPixelConfigIsCompressed(desc.fConfig) &&
|
| - !desc.fTextureStorageAllocator.fAllocateTextureStorage) {
|
| + !desc.fTextureStorageAllocator.fAllocateTextureStorage &&
|
| + kSampler2D_GrSLType == samplerType) {
|
| GrScratchKey key;
|
| GrTexturePriv::ComputeScratchKey(desc, &key);
|
| this->setScratchKey(key);
|
|
|