mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-23 18:19:40 +00:00
Use SDL_GetError() for SDL_ttf errors
This commit is contained in:
parent
5dc5b4b83c
commit
36a091cc43
@ -1094,7 +1094,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
font = TTF_OpenFont(fontname, DEFAULT_PTSIZE);
|
||||
if (!font) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to find font: %s\n", TTF_GetError());
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to find font: %s\n", SDL_GetError());
|
||||
return -1;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user