From 8c238400a85611cbc8f331cd648802d24d7a1e58 Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Sun, 5 Apr 2026 13:26:32 +0800 Subject: [PATCH] Require explicit ImGui text atlas context --- new_editor/src/XCUIBackend/ImGuiTextAtlasProvider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_editor/src/XCUIBackend/ImGuiTextAtlasProvider.cpp b/new_editor/src/XCUIBackend/ImGuiTextAtlasProvider.cpp index c754d1dc..7ac0becd 100644 --- a/new_editor/src/XCUIBackend/ImGuiTextAtlasProvider.cpp +++ b/new_editor/src/XCUIBackend/ImGuiTextAtlasProvider.cpp @@ -215,7 +215,7 @@ bool ImGuiTextAtlasProvider::FindGlyph( } ::ImGuiContext* ImGuiTextAtlasProvider::ResolveContext() const { - return m_context != nullptr ? m_context : ImGui::GetCurrentContext(); + return m_context; } } // namespace XCUIBackend