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

@ -459,6 +459,7 @@ bool D3D11HostDisplay::ChangeRenderWindow(const WindowInfo& new_wi)
void D3D11HostDisplay::DestroyRenderSurface()
{
m_window_info.SetSurfaceless();
if (IsFullscreen())
SetFullscreen(false, 0, 0, 0.0f);