GPU/HW: Don't set m_pgxp_depth_buffer when PGXP is disabled

Fixes text corruption in Castlevania when PGXP is disabled and depth
buffer is enabled.
This commit is contained in:
Connor McLaughlin 2021-01-01 17:48:58 +10:00
parent c9240eea72
commit 40257e5b20
1 changed files with 1 additions and 4 deletions

View File

@ -86,7 +86,7 @@ bool GPU_HW::Initialize(HostDisplay* host_display)
20.0f);
}
m_pgxp_depth_buffer = g_settings.gpu_pgxp_depth_buffer;
m_pgxp_depth_buffer = g_settings.UsingPGXPDepthBuffer();
PrintSettingsToLog();
return true;
}
@ -891,9 +891,6 @@ GPU_HW::VRAMFillUBOData GPU_HW::GetVRAMFillUBOData(u32 x, u32 y, u32 width, u32
std::tie(uniforms.u_fill_color[0], uniforms.u_fill_color[1], uniforms.u_fill_color[2], uniforms.u_fill_color[3]) =
RGBA8ToFloat(color);
if (m_pgxp_depth_buffer)
uniforms.u_fill_color[3] = 1.0f;
uniforms.u_interlaced_displayed_field = GetActiveLineLSB();
return uniforms;
}