This commit is contained in:
Venomalia 2025-04-19 10:24:24 +00:00 committed by GitHub
commit 2c27d042ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -159,7 +159,9 @@ TextureInfo::NameDetails TextureInfo::CalculateTextureName() const
const u32 texture_byte = m_ptr[i];
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;
case 16384 * 2: