This commit is contained in:
Venomalia 2025-12-14 22:33:48 +00:00 committed by GitHub
commit 375b3198ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,6 +159,8 @@ 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);
// 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); max = std::max(max, texture_byte);
} }
break; break;