diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index 152ce2442..02b3ca909 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -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)