Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libs/imgui/backends/imgui_impl_glfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,13 @@ void ImGui_ImplGlfw_Shutdown()
io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport);
ImGui_ImplGlfw_ContextMap_Remove(bd->Window);
IM_DELETE(bd);

if (g_ContextMap.empty()) {
// zgui overrides the default allocator of imgui and memory allocated by g_ContextMap will belong to zgui.
// By freeing this memory now we avoid issues with the destructor freeing after zgui has been deinitialized.
g_ContextMap.clear();
}

}

static void ImGui_ImplGlfw_UpdateMouseData()
Expand Down
Loading