From cd5ec59f6a9f84127e3da0edbb15d251a4e8d406 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 13 Aug 2023 21:11:38 +1000 Subject: [PATCH] GS/DX11: Commit clear before clearing stencil Stops the discard happening later, and blowing away the cleared value. --- pcsx2/GS/Renderers/DX11/GSDevice11.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp index 63ce00fdf4..6f56b3aa1e 100644 --- a/pcsx2/GS/Renderers/DX11/GSDevice11.cpp +++ b/pcsx2/GS/Renderers/DX11/GSDevice11.cpp @@ -1776,6 +1776,9 @@ void GSDevice11::SetupDATE(GSTexture* rt, GSTexture* ds, const GSVertexPT1* vert { // sfex3 (after the capcom logo), vf4 (first menu fading in), ffxii shadows, rumble roses shadows, persona4 shadows + CommitClear(rt); + CommitClear(ds); + m_ctx->ClearDepthStencilView(*static_cast(ds), D3D11_CLEAR_STENCIL, 0.0f, 0); // om