From 8156f6fe28cafe8e0271d155098e77e3a8ca3bdc Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 15 Oct 2022 12:50:27 -0700 Subject: [PATCH] D3D9: Correct scissor state cache in Draw. Gets reset when updating the render target. This fixes UI scissors. --- Common/GPU/D3D9/thin3d_d3d9.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/GPU/D3D9/thin3d_d3d9.cpp b/Common/GPU/D3D9/thin3d_d3d9.cpp index 11e9f08012..20bcc14e5d 100644 --- a/Common/GPU/D3D9/thin3d_d3d9.cpp +++ b/Common/GPU/D3D9/thin3d_d3d9.cpp @@ -1318,6 +1318,7 @@ void D3D9Context::BindFramebufferAsRenderTarget(Framebuffer *fbo, const RenderPa } dxstate.scissorRect.restore(); + dxstate.scissorTest.restore(); dxstate.viewport.restore(); stepId_++; }