win32/d3d9: Don't reset ImGui with device.

Just recreate necessary objects.
This commit is contained in:
bearoso 2023-07-11 15:19:50 -05:00 committed by GitHub
parent 81efc82f88
commit e49165c560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;