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

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