Skip to content

Commit bac748f

Browse files
committed
Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (ocornut#4656)
1 parent 05877c1 commit bac748f

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

backends/imgui_impl_glfw.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -961,4 +961,5 @@ static void ImGui_ImplGlfw_InitPlatformInterface()
961961

962962
static void ImGui_ImplGlfw_ShutdownPlatformInterface()
963963
{
964+
ImGui::DestroyPlatformWindows();
964965
}

backends/imgui_impl_sdl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -776,4 +776,5 @@ static void ImGui_ImplSDL2_InitPlatformInterface(SDL_Window* window, void* sdl_g
776776

777777
static void ImGui_ImplSDL2_ShutdownPlatformInterface()
778778
{
779+
ImGui::DestroyPlatformWindows();
779780
}

backends/imgui_impl_win32.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,7 @@ static void ImGui_ImplWin32_InitPlatformInterface()
10061006
static void ImGui_ImplWin32_ShutdownPlatformInterface()
10071007
{
10081008
::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(NULL));
1009+
ImGui::DestroyPlatformWindows();
10091010
}
10101011

10111012
//---------------------------------------------------------------------------------------------------------

docs/CHANGELOG.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ Other changes:
105105

106106
Docking+Viewports Branch:
107107

108-
- Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643)
108+
- Docking: Revert removal of io.ConfigDockingWithShift config option (removed in 1.83). (#4643)
109+
- Backends: Made it possible to shutdown default Platform Backends before the Renderer backends. (#4656)
109110

110111

111112
-----------------------------------------------------------------------

0 commit comments

Comments
 (0)