mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-25 08:10:30 +01: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
@ -2124,6 +2124,7 @@ void ImGui::Shutdown()
|
|||||||
ImGui::MemFree(g.LogClipboard);
|
ImGui::MemFree(g.LogClipboard);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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.IO.Fonts->Clear();
|
||||||
|
|
||||||
g.Initialized = false;
|
g.Initialized = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user