mirror of https://github.com/libsdl-org/SDL
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