| Index: src/gpu/GrTextureProvider.cpp
|
| diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp
|
| index 105cce2fb737bd61b8483f866d7dbbdab4115912..7d720eb1212dd0455953892c75e550155975fe03 100644
|
| --- a/src/gpu/GrTextureProvider.cpp
|
| +++ b/src/gpu/GrTextureProvider.cpp
|
| @@ -39,7 +39,8 @@ GrTexture* GrTextureProvider::createTexture(const GrSurfaceDesc& desc, bool budg
|
| !fGpu->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) {
|
| return nullptr;
|
| }
|
| - if (!GrPixelConfigIsCompressed(desc.fConfig)) {
|
| + if (!GrPixelConfigIsCompressed(desc.fConfig) &&
|
| + !desc.fTextureStorageAllocator.fAllocateTextureStorage) {
|
| static const uint32_t kFlags = kExact_ScratchTextureFlag |
|
| kNoCreate_ScratchTextureFlag;
|
| if (GrTexture* texture = this->refScratchTexture(desc, kFlags)) {
|
|
|