GS/HW: Fix loading replacement textures

This commit is contained in:
Stenzek 2024-04-02 02:00:51 +10:00 committed by lightningterror
parent aeb3cb0945
commit 69349e9d38
1 changed files with 1 additions and 1 deletions

View File

@ -5185,7 +5185,7 @@ GSTextureCache::HashCacheEntry* GSTextureCache::LookupHashCache(const GIFRegTEX0
{
// found a replacement texture! insert it into the hash cache, and clear paltex (since it's not indexed)
paltex = false;
const HashCacheEntry entry{replacement_tex, 1u, 0u, alpha_minmax, true};
const HashCacheEntry entry{replacement_tex, 1u, 0u, alpha_minmax, true, true};
m_hash_cache_replacement_memory_usage += entry.texture->GetMemUsage();
return &m_hash_cache.emplace(key, entry).first->second;
}