From 40b9fe7daeb276135430196725ecf17ed0f5c374 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 18 Nov 2021 22:47:46 +0100 Subject: [PATCH] Reload font atlas. --- profiler/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index a84b839c..844fc78a 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -173,6 +173,9 @@ static void LoadFonts( float scale, ImFont*& fixedWidth, ImFont*& bigFont, ImFon bigFont = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Arimo_compressed_data, tracy::Arimo_compressed_size, 20.0f * scale, &configBasic ); io.Fonts->AddFontFromMemoryCompressedTTF( tracy::FontAwesomeSolid_compressed_data, tracy::FontAwesomeSolid_compressed_size, 19.0f * scale, &configMerge, rangesIcons ); smallFont = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Arimo_compressed_data, tracy::Arimo_compressed_size, 10.0f * scale, &configBasic ); + + ImGui_ImplOpenGL3_DestroyFontsTexture(); + ImGui_ImplOpenGL3_CreateFontsTexture(); } static void SetupDPIScale( float scale, ImFont*& fixedWidth, ImFont*& bigFont, ImFont*& smallFont )