From 27fb636451e9c735432520463a4bdf97e6ef778b Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Thu, 15 Jan 2009 03:28:57 +0000 Subject: [PATCH] Flip the hashtable accesses back to always indexing based on the address; there's no particular benefit to indexing based on the hash, and doing so breaks copy EFB to texture mode. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1872 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp index 85a4bd87e7..6957476634 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp @@ -246,7 +246,7 @@ TextureMngr::TCacheEntry* TextureMngr::Load(int texstage, u32 address, int width bool skip_texture_create = false; - TexCache::iterator iter = textures.find(g_Config.bSafeTextureCache ? hash_value : address); + TexCache::iterator iter = textures.find(address); if (iter != textures.end()) { TCacheEntry &entry = iter->second; @@ -287,7 +287,7 @@ TextureMngr::TCacheEntry* TextureMngr::Load(int texstage, u32 address, int width PC_TexFormat dfmt = TexDecoder_Decode(temp, ptr, expandedWidth, height, format, tlutaddr, tlutfmt); //Make an entry in the table - TCacheEntry& entry = textures[ g_Config.bSafeTextureCache ? hash_value : address ]; + TCacheEntry& entry = textures[ address ]; entry.hashoffset = 0; entry.paletteHash = hashseed;