diff --git a/src/core/gpu.h b/src/core/gpu.h index 4c54d21f1..d0fbd3dd4 100644 --- a/src/core/gpu.h +++ b/src/core/gpu.h @@ -439,11 +439,7 @@ protected: TransparencyMode GetTransparencyMode() const { return mode_reg.transparency_mode; } /// Returns true if the texture mode requires a palette. - bool IsUsingPalette() const - { - return (static_cast(mode_reg.texture_mode.GetValue()) & - (static_cast(TextureMode::Palette4Bit) | static_cast(TextureMode::Palette8Bit))) != 0; - } + bool IsUsingPalette() const { return (mode_reg.bits & (2 << 7)) == 0; } /// Returns a rectangle comprising the texture page area. Common::Rectangle GetTexturePageRectangle() const