Skip to content

Commit 5b1c111

Browse files
committed
Create icon texture while waiting for icon to load.
1 parent 4892c32 commit 5b1c111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎profiler/src/main.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ int main( int argc, char** argv )
221221

222222
ImGuiTracyContext imguiContext;
223223
Backend backend( title, DrawContents, &mainThreadTasks );
224+
iconTex = tracy::MakeTexture();
224225
iconThread.join();
225226
backend.SetIcon( iconPx, iconX, iconY );
226227
bptr = &backend;
@@ -233,7 +234,6 @@ int main( int argc, char** argv )
233234
if( cnv != 0 ) dpiScale = cnv;
234235
}
235236

236-
iconTex = tracy::MakeTexture();
237237
SetupDPIScale( dpiScale, s_fixedWidth, s_bigFont, s_smallFont );
238238

239239
if( initFileOpen )

0 commit comments

Comments
 (0)