|
@@ -477,7 +477,6 @@ void ImGui_ImplOSX_Shutdown()
|
|
|
{
|
|
|
ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData();
|
|
|
IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?");
|
|
|
- ImGuiIO& io = ImGui::GetIO();
|
|
|
|
|
|
bd->Observer = nullptr;
|
|
|
if (bd->Monitor != nullptr)
|
|
@@ -486,10 +485,12 @@ void ImGui_ImplOSX_Shutdown()
|
|
|
bd->Monitor = nullptr;
|
|
|
}
|
|
|
|
|
|
+ ImGui_ImplOSX_DestroyBackendData();
|
|
|
+
|
|
|
+ ImGuiIO& io = ImGui::GetIO();
|
|
|
io.BackendPlatformName = nullptr;
|
|
|
io.BackendPlatformUserData = nullptr;
|
|
|
io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasGamepad);
|
|
|
- ImGui_ImplOSX_DestroyBackendData();
|
|
|
}
|
|
|
|
|
|
static void ImGui_ImplOSX_UpdateMouseCursor()
|