From 40257e5b2028a87bb983ca90e19417b82789af99 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 1 Jan 2021 17:48:58 +1000 Subject: [PATCH] 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. --- src/core/gpu_hw.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index a90f5f678..bdd693270 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -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; }