From 7fcc47dd86ce6f0043e3ecbc6885cbfc3f32db81 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Mon, 20 Nov 2023 19:11:59 +0000 Subject: [PATCH] GS/HW: In double half clears, take larger bitdepth --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 18500378dd..5ea2dc22d6 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -5859,7 +5859,7 @@ bool GSRendererHW::DetectDoubleHalfClear(bool& no_rt, bool& no_ds) ReplaceVerticesWithSprite(m_r, GSVector2i(1, 1)); // Prevent wasting time looking up and creating the target which is getting blown away. - if (!clear_depth) + if (frame_psm.trbpp >= zbuf_psm.trbpp) { SetNewFRAME(base * BLOCKS_PER_PAGE, m_cached_ctx.FRAME.FBW, m_cached_ctx.FRAME.PSM); m_cached_ctx.ZBUF.ZMSK = true;