diff --git a/win32/CDirect3D.cpp b/win32/CDirect3D.cpp index 5dc9012a..910d39c4 100644 --- a/win32/CDirect3D.cpp +++ b/win32/CDirect3D.cpp @@ -558,7 +558,7 @@ bool CDirect3D::ResetDevice() if (S9xImGuiRunning()) { - ImGui_ImplDX9_Shutdown(); + ImGui_ImplDX9_InvalidateDeviceObjects(); } //release prior to reset @@ -612,7 +612,7 @@ bool CDirect3D::ResetDevice() if (S9xImGuiRunning()) { - ImGui_ImplDX9_Init(pDevice); + ImGui_ImplDX9_CreateDeviceObjects(); } return true;