Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 0431a2719ea0405578c2445217c532fb44e7928a..9754d4467adc02612b43179aed33635f974117ca 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -180,8 +180,7 @@ void GrResourceCache::notifyPurgable(const GrGpuResource* resource) { |
if (resource->getCacheEntry()->key().getResourceType() == GrTexturePriv::ResourceType() && |
resource->getCacheEntry()->key().isScratch() && |
!fCaps->reuseScratchTextures() && |
- !(static_cast<const GrTexture*>(resource)->desc().fFlags & |
- kRenderTarget_GrSurfaceFlag)) { |
+ !(static_cast<const GrSurface*>(resource)->desc().fFlags & kRenderTarget_GrSurfaceFlag)) { |
this->deleteResource(resource->getCacheEntry()); |
} |
} |