diff --git a/src/frontend-common/opengl_host_display.cpp b/src/frontend-common/opengl_host_display.cpp index fcf5d969d..d3123ab6e 100644 --- a/src/frontend-common/opengl_host_display.cpp +++ b/src/frontend-common/opengl_host_display.cpp @@ -381,6 +381,7 @@ bool OpenGLHostDisplay::CreateRenderDevice(const WindowInfo& wi, std::string_vie if (!m_gl_context) { Log_ErrorPrintf("Failed to create any GL context"); + m_gl_context.reset(); return false; }