mirror of https://github.com/PCSX2/pcsx2.git
GS/OGL: Fix GL error on shutdown
This commit is contained in:
parent
5bc9d625e7
commit
ce5dd88790
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue