GS/HW: Ensure mipmaps aren't generated on hash cache textures

This commit is contained in:
Stenzek
2024-06-24 10:15:48 +10:00
committed by Connor McLaughlin
parent f6a7dc52e2
commit 57d225437e
+3 -2
View File
@@ -5366,8 +5366,7 @@ GSTextureCache::HashCacheEntry* GSTextureCache::LookupHashCache(const GIFRegTEX0
if (lod)
{
const int basemip = lod->x;
const int nmips = lod->y - lod->x + 1;
for (int mip = 1; mip < nmips; mip++)
for (int mip = 1; mip < tlevels; mip++)
{
const GIFRegTEX0 MIP_TEX0{g_gs_renderer->GetTex0Layer(basemip + mip)};
std::pair<u8, u8> mip_alpha_minmax;
@@ -5379,6 +5378,8 @@ GSTextureCache::HashCacheEntry* GSTextureCache::LookupHashCache(const GIFRegTEX0
alpha_minmax.second = std::max(alpha_minmax.second, mip_alpha_minmax.second);
}
}
tex->ClearMipmapGenerationFlag();
}
// remove the palette hash when using paltex/indexed