GPU/HW: Fix mask bit test regression

Fixes white boxes in Silent Hill. Again.
This commit is contained in:
Connor McLaughlin 2020-08-02 13:04:24 +10:00
parent 5f9481dd3d
commit bd0c403672

View file

@ -212,13 +212,13 @@ void GPU_HW::FixLineVertexCoordinates(s32& start_x, s32& start_y, s32& end_x, s3
void GPU_HW::LoadVertices() void GPU_HW::LoadVertices()
{ {
if (m_GPUSTAT.check_mask_before_draw)
m_current_depth++;
const RenderCommand rc{m_render_command.bits}; const RenderCommand rc{m_render_command.bits};
const u32 texpage = ZeroExtend32(m_draw_mode.mode_reg.bits) | (ZeroExtend32(m_draw_mode.palette_reg) << 16); const u32 texpage = ZeroExtend32(m_draw_mode.mode_reg.bits) | (ZeroExtend32(m_draw_mode.palette_reg) << 16);
const float depth = GetCurrentNormalizedVertexDepth(); const float depth = GetCurrentNormalizedVertexDepth();
if (m_GPUSTAT.check_mask_before_draw)
m_current_depth++;
switch (rc.primitive) switch (rc.primitive)
{ {
case Primitive::Polygon: case Primitive::Polygon: