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.
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::Destroyand changedgContextto be pointer.I could create PR if you're interested to accept this change.
Alternative minimum solution for this problem is to have
ImGuizmo::Cleanupthat could be called when the rest of ImGui is shutdown. That was all memory would be released, and not cause the issue onatexitcleanup.