Skip to content

Global context causing issue with custom allocators... #380

@bkaradzic

Description

@bkaradzic

I just update to latest ImGuizmo and ran into issue when there is ImGui memory allocation referenced by global Context.

The fix is that ImGuizmo is explicitly created and destroyed.

Here is my commit with the fix:
bkaradzic/bgfx@1bf37c0

Basically, I added ImGuizmo::Create / ImGuizmo::Destroy and changed gContext to be pointer.

I could create PR if you're interested to accept this change.

Alternative minimum solution for this problem is to have ImGuizmo::Cleanup that could be called when the rest of ImGui is shutdown. That was all memory would be released, and not cause the issue on atexit cleanup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions