mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
GS/GL: Properly clear fbo states.
Fixes crashes in Renderdoc when re launching OpenGL again.
This commit is contained in:
@@ -958,11 +958,22 @@ void GSDeviceOGL::DestroyResources()
|
||||
glDeleteBuffers(1, &m_expand_ibo);
|
||||
|
||||
if (m_fbo != 0)
|
||||
{
|
||||
glDeleteFramebuffers(1, &m_fbo);
|
||||
m_fbo = 0;
|
||||
}
|
||||
if (m_fbo_read != 0)
|
||||
{
|
||||
glDeleteFramebuffers(1, &m_fbo_read);
|
||||
m_fbo_read = 0;
|
||||
}
|
||||
if (m_fbo_write != 0)
|
||||
{
|
||||
glDeleteFramebuffers(1, &m_fbo_write);
|
||||
m_fbo_write = 0;
|
||||
}
|
||||
|
||||
GLState::fbo = 0;
|
||||
}
|
||||
|
||||
bool GSDeviceOGL::UpdateWindow()
|
||||
|
||||
Reference in New Issue
Block a user