mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
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:
parent
c9240eea72
commit
40257e5b20
|
@ -86,7 +86,7 @@ bool GPU_HW::Initialize(HostDisplay* host_display)
|
||||||
20.0f);
|
20.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pgxp_depth_buffer = g_settings.gpu_pgxp_depth_buffer;
|
m_pgxp_depth_buffer = g_settings.UsingPGXPDepthBuffer();
|
||||||
PrintSettingsToLog();
|
PrintSettingsToLog();
|
||||||
return true;
|
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]) =
|
std::tie(uniforms.u_fill_color[0], uniforms.u_fill_color[1], uniforms.u_fill_color[2], uniforms.u_fill_color[3]) =
|
||||||
RGBA8ToFloat(color);
|
RGBA8ToFloat(color);
|
||||||
|
|
||||||
if (m_pgxp_depth_buffer)
|
|
||||||
uniforms.u_fill_color[3] = 1.0f;
|
|
||||||
|
|
||||||
uniforms.u_interlaced_displayed_field = GetActiveLineLSB();
|
uniforms.u_interlaced_displayed_field = GetActiveLineLSB();
|
||||||
return uniforms;
|
return uniforms;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue