From 6666b400a32249752815a33ac78e9fd1557f3bca Mon Sep 17 00:00:00 2001 From: skidau Date: Sun, 7 Nov 2010 04:28:33 +0000 Subject: Updated with a less aggressive optimisation to EFB copy to RAM. The destination texture now does not get invalidated if its hash is found in the texture cache. Fixes Metroid Prime 3. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6353 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureCacheBase.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp') diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp index ba54adbac5..65a74b71dc 100644 --- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp @@ -137,9 +137,7 @@ void TextureCache::MakeRangeDynamic(u32 start_address, u32 size) bool TextureCache::Find(u32 start_address, u64 hash) { - TexCache::iterator - iter = textures.lower_bound(start_address), - tcend = textures.upper_bound(start_address); + TexCache::iterator iter = textures.lower_bound(start_address); if (iter->second->hash == hash) return true; -- cgit v1.2.3