From 29ad851a9cd6b7a14780211c9ef56792d0fc89b8 Mon Sep 17 00:00:00 2001 From: iMineLink Date: Sat, 14 May 2022 19:21:57 +0200 Subject: [PATCH] gs-ogl: fix depth copy shader in stretch rect. --- pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp index ad7bbb0d3f..b8f5f38ebf 100644 --- a/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp +++ b/pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp @@ -1197,7 +1197,8 @@ void GSDeviceOGL::StretchRect(GSTexture* sTex, const GSVector4& sRect, GSTexture { ASSERT(sTex); - const bool draw_in_depth = ps == m_convert.ps[static_cast(ShaderConvert::RGBA8_TO_FLOAT32)] + const bool draw_in_depth = ps == m_convert.ps[static_cast(ShaderConvert::DEPTH_COPY)] + || ps == m_convert.ps[static_cast(ShaderConvert::RGBA8_TO_FLOAT32)] || ps == m_convert.ps[static_cast(ShaderConvert::RGBA8_TO_FLOAT24)] || ps == m_convert.ps[static_cast(ShaderConvert::RGBA8_TO_FLOAT16)] || ps == m_convert.ps[static_cast(ShaderConvert::RGB5A1_TO_FLOAT16)];