mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
C8 Texture-Tlut-Hash remains constant when the transparency flag is used.
This commit is contained in:
parent
0291d2c45f
commit
c678d9fa71
@ -135,7 +135,9 @@ TextureInfo::NameDetails TextureInfo::CalculateTextureName() const
|
|||||||
const u32 texture_byte = m_ptr[i];
|
const u32 texture_byte = m_ptr[i];
|
||||||
|
|
||||||
min = std::min(min, texture_byte);
|
min = std::min(min, texture_byte);
|
||||||
max = std::max(max, texture_byte);
|
// The value 255 can be used as a transparency flag if the tlut is smaller than 255.
|
||||||
|
if (texture_byte != 255 || max == 254)
|
||||||
|
max = std::max(max, texture_byte);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user