GPU: Fix incorrect palette used on some polygons

This commit is contained in:
Connor McLaughlin
2019-09-27 16:17:09 +10:00
parent 7ec3343ee6
commit 40d2497087
4 changed files with 55 additions and 61 deletions

View File

@ -792,7 +792,7 @@ void GPU::RenderState::SetFromPageAttribute(u16 value)
texture_color_mode = TextureColorMode::Direct16Bit;
texpage_attribute = value;
texture_changed = (old_page_attribute & PAGE_ATTRIBUTE_TEXTURE_MASK) != (value & PAGE_ATTRIBUTE_TEXTURE_MASK);
texture_changed |= (old_page_attribute & PAGE_ATTRIBUTE_TEXTURE_MASK) != (value & PAGE_ATTRIBUTE_TEXTURE_MASK);
const TransparencyMode old_transparency_mode = transparency_mode;
transparency_mode = (static_cast<TransparencyMode>((value >> 5) & UINT16_C(0x03)));