mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-12 00:05:41 -04:00
NoGUI: Fix debug assertion firing on renderer switch
This commit is contained in:
parent
3bc34d40a1
commit
fc578b7ec7
@ -270,7 +270,6 @@ bool NoGUIHostInterface::AcquireHostDisplay()
|
|||||||
{
|
{
|
||||||
const bool was_fullscreen = IsFullscreen();
|
const bool was_fullscreen = IsFullscreen();
|
||||||
|
|
||||||
ImGui::EndFrame();
|
|
||||||
DestroyDisplay();
|
DestroyDisplay();
|
||||||
|
|
||||||
// We need to recreate the window, otherwise bad things happen...
|
// We need to recreate the window, otherwise bad things happen...
|
||||||
@ -280,8 +279,6 @@ bool NoGUIHostInterface::AcquireHostDisplay()
|
|||||||
|
|
||||||
if (!CreateDisplay())
|
if (!CreateDisplay())
|
||||||
Panic("Failed to recreate display on GPU renderer switch");
|
Panic("Failed to recreate display on GPU renderer switch");
|
||||||
|
|
||||||
ImGui::NewFrame();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CreateHostDisplayResources())
|
if (!CreateHostDisplayResources())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user