mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Don't change ImGui fonts during render job.
This commit is contained in:
parent
2243b6e293
commit
cfec8257cb
@ -197,7 +197,7 @@ static void SetupDPIScale( float scale, ImFont*& fixedWidth, ImFont*& bigFont, I
|
||||
|
||||
static void SetupScaleCallback( float scale, ImFont*& fixedWidth, ImFont*& bigFont, ImFont*& smallFont )
|
||||
{
|
||||
SetupDPIScale( scale * dpiScale, fixedWidth, bigFont, smallFont );
|
||||
RunOnMainThread( [scale, &fixedWidth, &bigFont, &smallFont] { SetupDPIScale( scale * dpiScale, fixedWidth, bigFont, smallFont ); }, true );
|
||||
}
|
||||
|
||||
int main( int argc, char** argv )
|
||||
|
Loading…
x
Reference in New Issue
Block a user