Create icon texture while waiting for icon to load.

This commit is contained in:
Bartosz Taudul 2022-10-15 12:16:18 +02:00
parent 4892c32b40
commit 5b1c1119c5
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -221,6 +221,7 @@ int main( int argc, char** argv )
ImGuiTracyContext imguiContext; ImGuiTracyContext imguiContext;
Backend backend( title, DrawContents, &mainThreadTasks ); Backend backend( title, DrawContents, &mainThreadTasks );
iconTex = tracy::MakeTexture();
iconThread.join(); iconThread.join();
backend.SetIcon( iconPx, iconX, iconY ); backend.SetIcon( iconPx, iconX, iconY );
bptr = &backend; bptr = &backend;
@ -233,7 +234,6 @@ int main( int argc, char** argv )
if( cnv != 0 ) dpiScale = cnv; if( cnv != 0 ) dpiScale = cnv;
} }
iconTex = tracy::MakeTexture();
SetupDPIScale( dpiScale, s_fixedWidth, s_bigFont, s_smallFont ); SetupDPIScale( dpiScale, s_fixedWidth, s_bigFont, s_smallFont );
if( initFileOpen ) if( initFileOpen )