mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Textures: fixed an issue preventing multi-contexts sharing a ImFontAtlas from being possible to destroy in any order.
This commit is contained in:
parent
a3d6e82dbd
commit
b987970870
3 changed files with 4 additions and 2 deletions
|
|
@ -4326,7 +4326,7 @@ void ImGui::Shutdown()
|
|||
for (ImFontAtlas* atlas : g.FontAtlases)
|
||||
{
|
||||
UnregisterFontAtlas(atlas);
|
||||
if (atlas->OwnerContext == &g)
|
||||
if (atlas->RefCount == 0)
|
||||
{
|
||||
atlas->Locked = false;
|
||||
IM_DELETE(atlas);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue