From 91a366b7686aa7cb859d95e961019b8583c3d690 Mon Sep 17 00:00:00 2001 From: Xu <34770031+Blinue@users.noreply.github.com> Date: Sun, 3 Mar 2024 15:24:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=98=B2=E6=AD=A2=203D=20=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=89=93=E5=BC=80=E5=8F=A0?= =?UTF-8?q?=E5=8A=A0=E5=B1=82=E5=8F=AF=E8=83=BD=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E5=B4=A9=E6=BA=83=20(#840)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Magpie.Core/OverlayDrawer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Magpie.Core/OverlayDrawer.cpp b/src/Magpie.Core/OverlayDrawer.cpp index 04cf70783..a655be552 100644 --- a/src/Magpie.Core/OverlayDrawer.cpp +++ b/src/Magpie.Core/OverlayDrawer.cpp @@ -298,7 +298,9 @@ bool OverlayDrawer::_BuildFonts() noexcept { ImFontAtlas& fontAtlas = *ImGui::GetIO().Fonts; - bool fontCacheDisabled = MagApp::Get().GetOptions().IsDisableFontCache(); + const MagOptions& options = MagApp::Get().GetOptions(); + // 3D 游戏模式下字体纹理中有光标纹理,不支持缓存 + const bool fontCacheDisabled = options.IsDisableFontCache() || options.Is3DGameMode(); if (!fontCacheDisabled && ImGuiFontsCacheManager::Get().Load(language, fontAtlas)) { _fontUI = fontAtlas.Fonts[0]; _fontMonoNumbers = fontAtlas.Fonts[1];