From 5b1c1119c501e583f5a486809b837b657fc462c8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 15 Oct 2022 12:16:18 +0200 Subject: [PATCH] Create icon texture while waiting for icon to load. --- profiler/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 3b2569e0..6035b590 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -221,6 +221,7 @@ int main( int argc, char** argv ) ImGuiTracyContext imguiContext; Backend backend( title, DrawContents, &mainThreadTasks ); + iconTex = tracy::MakeTexture(); iconThread.join(); backend.SetIcon( iconPx, iconX, iconY ); bptr = &backend; @@ -233,7 +234,6 @@ int main( int argc, char** argv ) if( cnv != 0 ) dpiScale = cnv; } - iconTex = tracy::MakeTexture(); SetupDPIScale( dpiScale, s_fixedWidth, s_bigFont, s_smallFont ); if( initFileOpen )