From cc814585ee5add1138e572490853c605324a4ca9 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 2 Apr 2023 13:27:30 +1000 Subject: [PATCH] GS/OGL: Fix incorrect binding in multi stretch rect --- pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp index 732e46234f..d4764e95bd 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp +++ b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp @@ -1286,7 +1286,10 @@ void GSDeviceOGL::DrawMultiStretchRects( OMSetDepthStencilState(m_convert.dss); OMSetBlendState(false); OMSetColorMaskState(); - OMSetRenderTargets(dTex, nullptr); + if (!dTex->IsDepthStencil()) + OMSetRenderTargets(dTex, nullptr); + else + OMSetRenderTargets(nullptr, dTex); m_convert.ps[static_cast(shader)].Bind(); const GSVector2 ds(static_cast(dTex->GetWidth()), static_cast(dTex->GetHeight()));