GPU: Fix incorrect handling of check mask bit

Fixes boxes in Silent Hill in Software Renderer.
This commit is contained in:
Connor McLaughlin
2020-03-06 00:29:35 +10:00
parent d46d681179
commit f9a298f1b7
3 changed files with 14 additions and 6 deletions

View File

@ -570,7 +570,7 @@ void GPU_SW::ShadePixel(u32 x, u32 y, u8 color_r, u8 color_g, u8 color_b, u8 tex
}
const u16 mask_and = m_GPUSTAT.GetMaskAND();
if ((bg_color.bits & mask_and) != mask_and)
if ((bg_color.bits & mask_and) != 0)
return;
SetPixel(static_cast<u32>(x), static_cast<u32>(y), color.bits | m_GPUSTAT.GetMaskOR());