GS/OGL: Fix incorrect binding in multi stretch rect

This commit is contained in:
Stenzek 2023-04-02 13:27:30 +10:00 committed by refractionpcsx2
parent b0d26c8242
commit cc814585ee
1 changed files with 4 additions and 1 deletions

View File

@ -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<int>(shader)].Bind();
const GSVector2 ds(static_cast<float>(dTex->GetWidth()), static_cast<float>(dTex->GetHeight()));