mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
ImGuizmo: Fix crash at exit due to global context.
This commit is contained in:
@@ -454,11 +454,15 @@ struct OcornutImguiContext
|
||||
}
|
||||
}
|
||||
|
||||
ImGuizmo::Create();
|
||||
|
||||
ImGui::InitDockContext();
|
||||
}
|
||||
|
||||
void destroy()
|
||||
{
|
||||
ImGuizmo::Destroy();
|
||||
|
||||
for (ImTextureData* texData : ImGui::GetPlatformIO().Textures)
|
||||
{
|
||||
if (1 == texData->RefCount)
|
||||
|
||||
Reference in New Issue
Block a user