Index: src/gpu/GrTextureProvider.cpp |
diff --git a/src/gpu/GrTextureProvider.cpp b/src/gpu/GrTextureProvider.cpp |
index 97d5a79da19ee6413ee804f3ed07da576f10bcd5..253fe032ed90e9b8cab86824560f0289a5150d7a 100644 |
--- a/src/gpu/GrTextureProvider.cpp |
+++ b/src/gpu/GrTextureProvider.cpp |
@@ -86,7 +86,9 @@ GrTexture* GrTextureProvider::refScratchTexture(const GrSurfaceDesc& inDesc, |
// writePixels() which will trigger a flush if the texture has pending IO. |
scratchFlags = GrResourceCache::kPreferNoPendingIO_ScratchFlag; |
} |
- GrGpuResource* resource = fCache->findAndRefScratchResource(key, scratchFlags); |
+ GrGpuResource* resource = fCache->findAndRefScratchResource(key, |
+ GrSurface::WorseCaseSize(*desc), |
+ scratchFlags); |
if (resource) { |
GrSurface* surface = static_cast<GrSurface*>(resource); |
GrRenderTarget* rt = surface->asRenderTarget(); |