mirror of https://github.com/snes9xgit/snes9x.git
win32/d3d9: Don't reset ImGui with device.
Just recreate necessary objects.
This commit is contained in:
parent
81efc82f88
commit
e49165c560
|
@ -558,7 +558,7 @@ bool CDirect3D::ResetDevice()
|
||||||
|
|
||||||
if (S9xImGuiRunning())
|
if (S9xImGuiRunning())
|
||||||
{
|
{
|
||||||
ImGui_ImplDX9_Shutdown();
|
ImGui_ImplDX9_InvalidateDeviceObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
//release prior to reset
|
//release prior to reset
|
||||||
|
@ -612,7 +612,7 @@ bool CDirect3D::ResetDevice()
|
||||||
|
|
||||||
if (S9xImGuiRunning())
|
if (S9xImGuiRunning())
|
||||||
{
|
{
|
||||||
ImGui_ImplDX9_Init(pDevice);
|
ImGui_ImplDX9_CreateDeviceObjects();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue