mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Create icon texture while waiting for icon to load.
This commit is contained in:
parent
4892c32b40
commit
5b1c1119c5
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user