ImGuizmo: Fix crash at exit due to global context.

This commit is contained in:
Branimir Karadžić
2025-10-23 08:53:35 -07:00
parent 4133674f08
commit 1bf37c0da2
3 changed files with 448 additions and 422 deletions

View File

@@ -454,11 +454,15 @@ struct OcornutImguiContext
}
}
ImGuizmo::Create();
ImGui::InitDockContext();
}
void destroy()
{
ImGuizmo::Destroy();
for (ImTextureData* texData : ImGui::GetPlatformIO().Textures)
{
if (1 == texData->RefCount)