GPU/OpenGL: Fix possible error on shutdown

This commit is contained in:
Connor McLaughlin 2020-08-02 17:16:51 +10:00
parent 4d9c2c1b6c
commit 568cfa1865

View file

@ -25,6 +25,10 @@ GPU_HW_OpenGL::~GPU_HW_OpenGL()
m_host_display->ClearDisplayTexture();
ResetGraphicsAPIState();
}
// One of our programs might've been bound.
GL::Program::ResetLastProgram();
glUseProgram(0);
}
bool GPU_HW_OpenGL::Initialize(HostDisplay* host_display)