mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-18 12:31:21 +00:00
[client] only init ttf if fps is enabled
This commit is contained in:
parent
f2216168f4
commit
9590b58f0f
@ -771,6 +771,8 @@ int run()
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.showFPS)
|
||||||
|
{
|
||||||
if (TTF_Init() < 0)
|
if (TTF_Init() < 0)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("TTL_Init Failed");
|
DEBUG_ERROR("TTL_Init Failed");
|
||||||
@ -783,6 +785,7 @@ int run()
|
|||||||
DEBUG_ERROR("TTL_OpenFont Failed");
|
DEBUG_ERROR("TTL_OpenFont Failed");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
state.window = SDL_CreateWindow(
|
state.window = SDL_CreateWindow(
|
||||||
"KVM-GFX Test",
|
"KVM-GFX Test",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user