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
This commit is contained in:
parent
e8edc685ba
commit
27fb636451
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue