mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 07:35:41 +00:00
GPU/OpenGL: Fix possible error on shutdown
This commit is contained in:
parent
4d9c2c1b6c
commit
568cfa1865
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue