WindowInfo: Don't clear display when going surfaceless

Fixes panic when a popup occurs when using GLX.
This commit is contained in:
Connor McLaughlin
2022-11-23 19:13:28 +10:00
parent add2b5fbae
commit 27b0847ee7
6 changed files with 23 additions and 2 deletions

View File

@ -408,7 +408,7 @@ void OpenGLHostDisplay::DestroyRenderSurface()
if (!m_gl_context)
return;
m_window_info = {};
m_window_info.SetSurfaceless();
if (!m_gl_context->ChangeSurface(m_window_info))
Log_ErrorPrintf("Failed to switch to surfaceless");
}