GS/OGL: Fix GL error on shutdown

This commit is contained in:
Stenzek 2023-04-09 20:11:39 +10:00 committed by refractionpcsx2
parent 5bc9d625e7
commit ce5dd88790
1 changed files with 4 additions and 0 deletions

View File

@ -2098,6 +2098,10 @@ void GSDeviceOGL::OMSetColorMaskState(OMColorMaskSelector sel)
void GSDeviceOGL::OMUnbindTexture(GSTextureOGL* tex)
{
if (GLState::rt != tex && GLState::ds != tex)
return;
OMSetFBO(m_fbo);
if (GLState::rt == tex)
OMAttachRt();
if (GLState::ds == tex)