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;
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 )