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

This commit is contained in:
ocornut 2021-10-15 17:16:26 +02:00
parent 05877c14df
commit bac748fa95
4 changed files with 5 additions and 1 deletions

View File

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

View File

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

View File

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

View File

@ -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)
-----------------------------------------------------------------------