Răsfoiți Sursa

Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (#4656)

ocornut 3 ani în urmă
părinte
comite
bac748fa95

+ 1 - 0
backends/imgui_impl_glfw.cpp

@@ -961,4 +961,5 @@ static void ImGui_ImplGlfw_InitPlatformInterface()
 
 static void ImGui_ImplGlfw_ShutdownPlatformInterface()
 {
+    ImGui::DestroyPlatformWindows();
 }

+ 1 - 0
backends/imgui_impl_sdl.cpp

@@ -776,4 +776,5 @@ static void ImGui_ImplSDL2_InitPlatformInterface(SDL_Window* window, void* sdl_g
 
 static void ImGui_ImplSDL2_ShutdownPlatformInterface()
 {
+    ImGui::DestroyPlatformWindows();
 }

+ 1 - 0
backends/imgui_impl_win32.cpp

@@ -1006,6 +1006,7 @@ static void ImGui_ImplWin32_InitPlatformInterface()
 static void ImGui_ImplWin32_ShutdownPlatformInterface()
 {
     ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(NULL));
+    ImGui::DestroyPlatformWindows();
 }
 
 //---------------------------------------------------------------------------------------------------------

+ 2 - 1
docs/CHANGELOG.txt

@@ -105,7 +105,8 @@ Other changes:
 
 Docking+Viewports Branch:
 
-- Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643)
+- Docking: Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643)
+- Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (#4656)
 
 
 -----------------------------------------------------------------------