mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-21 01:44:21 +00:00
Shutdown() test for g.IO.Fonts not being NULL to allow workarounds in case of using multiple contexts #207
This commit is contained in:
parent
f293bec97c
commit
6c1084eaa1
1 changed files with 2 additions and 1 deletions
|
|
@ -2124,7 +2124,8 @@ void ImGui::Shutdown()
|
|||
ImGui::MemFree(g.LogClipboard);
|
||||
}
|
||||
|
||||
g.IO.Fonts->Clear();
|
||||
if (g.IO.Fonts) // Testing for NULL to allow user to NULLify in case of running Shutdown() on multiple contexts. Bit hacky.
|
||||
g.IO.Fonts->Clear();
|
||||
|
||||
g.Initialized = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue