瀏覽代碼

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

ocornut 3 年之前
父節點
當前提交
bac748fa95
共有 4 個文件被更改,包括 5 次插入1 次删除
  1. 1 0
      backends/imgui_impl_glfw.cpp
  2. 1 0
      backends/imgui_impl_sdl.cpp
  3. 1 0
      backends/imgui_impl_win32.cpp
  4. 2 1
      docs/CHANGELOG.txt

+ 1 - 0
backends/imgui_impl_glfw.cpp

@@ -961,4 +961,5 @@ static void ImGui_ImplGlfw_InitPlatformInterface()
 
 
 static void ImGui_ImplGlfw_ShutdownPlatformInterface()
 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()
 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()
 static void ImGui_ImplWin32_ShutdownPlatformInterface()
 {
 {
     ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(NULL));
     ::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(NULL));
+    ImGui::DestroyPlatformWindows();
 }
 }
 
 
 //---------------------------------------------------------------------------------------------------------
 //---------------------------------------------------------------------------------------------------------

+ 2 - 1
docs/CHANGELOG.txt

@@ -105,7 +105,8 @@ Other changes:
 
 
 Docking+Viewports Branch:
 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)
 
 
 
 
 -----------------------------------------------------------------------
 -----------------------------------------------------------------------