mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU/HW: Fix mask bit test regression
Fixes white boxes in Silent Hill. Again.
This commit is contained in:
parent
5f9481dd3d
commit
bd0c403672
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue