GPU: Fix incorrect bit check in DrawMode::IsUsingPalette()

Fixes Sony Computer Entertainment fade in the NTSC-J BIOS.
This commit is contained in:
Connor McLaughlin 2020-02-17 00:09:27 +09:00
parent 0f7365117b
commit bd542831a8
1 changed files with 1 additions and 5 deletions

View File

@ -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<u8>(mode_reg.texture_mode.GetValue()) &
(static_cast<u8>(TextureMode::Palette4Bit) | static_cast<u8>(TextureMode::Palette8Bit))) != 0;
}
bool IsUsingPalette() const { return (mode_reg.bits & (2 << 7)) == 0; }
/// Returns a rectangle comprising the texture page area.
Common::Rectangle<u32> GetTexturePageRectangle() const