Skip to content

Commit

Permalink
Backends: Made it possible to shutdown default Platform Backends befo…
Browse files Browse the repository at this point in the history
…re the Renderer backends. (#4656)
  • Loading branch information
ocornut committed Oct 15, 2021
1 parent 05877c1 commit bac748f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions backends/imgui_impl_glfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -961,4 +961,5 @@ static void ImGui_ImplGlfw_InitPlatformInterface()

static void ImGui_ImplGlfw_ShutdownPlatformInterface()
{
ImGui::DestroyPlatformWindows();
}
1 change: 1 addition & 0 deletions backends/imgui_impl_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -776,4 +776,5 @@ static void ImGui_ImplSDL2_InitPlatformInterface(SDL_Window* window, void* sdl_g

static void ImGui_ImplSDL2_ShutdownPlatformInterface()
{
ImGui::DestroyPlatformWindows();
}
1 change: 1 addition & 0 deletions backends/imgui_impl_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,6 +1006,7 @@ static void ImGui_ImplWin32_InitPlatformInterface()
static void ImGui_ImplWin32_ShutdownPlatformInterface()
{
::UnregisterClass(_T("ImGui Platform"), ::GetModuleHandle(NULL));
ImGui::DestroyPlatformWindows();
}

//---------------------------------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)


-----------------------------------------------------------------------
Expand Down

0 comments on commit bac748f

Please sign in to comment.