Fonts: fixed support for multiple atlases.

Moved FontAtlasOwnedByContext to OwnerContext

# Conflicts:
#	imgui.cpp
#	imgui_internal.h
This commit is contained in:
ocornut
2025-06-11 15:58:29 +02:00
parent fad5280d4c
commit 91ed6e67b4
3 changed files with 59 additions and 37 deletions
+1
View File
@@ -3684,6 +3684,7 @@ struct ImFontAtlas
void* FontLoaderData; // Font backend opaque storage
unsigned int FontBuilderFlags; // [FIXME: Should be called FontLoaderFlags] Shared flags (for all fonts) for font loader. THIS IS BUILD IMPLEMENTATION DEPENDENT (e.g. . Per-font override is also available in ImFontConfig.
int RefCount; // Number of contexts using this atlas
ImGuiContext* OwnerContext; // Context which own the atlas will be in charge of updating and destroying it.
// [Obsolete]
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS