[client] only init ttf if fps is enabled

This commit is contained in:
Geoffrey McRae 2017-12-02 17:46:09 +11:00
parent f2216168f4
commit 9590b58f0f

View File

@ -771,6 +771,8 @@ int run()
return -1;
}
if (params.showFPS)
{
if (TTF_Init() < 0)
{
DEBUG_ERROR("TTL_Init Failed");
@ -783,6 +785,7 @@ int run()
DEBUG_ERROR("TTL_OpenFont Failed");
return -1;
}
}
state.window = SDL_CreateWindow(
"KVM-GFX Test",