Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index f70d141c72aeb6e461a2d5510cfc4421b16dc71e..0431a2719ea0405578c2445217c532fb44e7928a 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -181,7 +181,7 @@ void GrResourceCache::notifyPurgable(const GrGpuResource* resource) { |
resource->getCacheEntry()->key().isScratch() && |
!fCaps->reuseScratchTextures() && |
!(static_cast<const GrTexture*>(resource)->desc().fFlags & |
- kRenderTarget_GrTextureFlagBit)) { |
+ kRenderTarget_GrSurfaceFlag)) { |
this->deleteResource(resource->getCacheEntry()); |
} |
} |