NoGUI: Fix debug assertion firing on renderer switch

This commit is contained in:
Connor McLaughlin 2021-02-07 03:15:06 +10:00
parent 3bc34d40a1
commit fc578b7ec7
1 changed files with 0 additions and 3 deletions

View File

@ -270,7 +270,6 @@ bool NoGUIHostInterface::AcquireHostDisplay()
{
const bool was_fullscreen = IsFullscreen();
ImGui::EndFrame();
DestroyDisplay();
// We need to recreate the window, otherwise bad things happen...
@ -280,8 +279,6 @@ bool NoGUIHostInterface::AcquireHostDisplay()
if (!CreateDisplay())
Panic("Failed to recreate display on GPU renderer switch");
ImGui::NewFrame();
}
if (!CreateHostDisplayResources())