Skip to content

Commit

Permalink
WARNING: REMOVED: Default font fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Jun 25, 2024
1 parent 4239e66 commit 0979eaf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,7 @@ Font LoadFont(const char *fileName)
UnloadImage(image);
}

if (font.texture.id == 0)
{
TRACELOG(LOG_WARNING, "FONT: [%s] Failed to load font texture -> Using default font", fileName);
font = GetFontDefault();
}
if (font.texture.id == 0) TRACELOG(LOG_WARNING, "FONT: [%s] Failed to load font texture -> Using default font", fileName);
else
{
SetTextureFilter(font.texture, TEXTURE_FILTER_POINT); // By default, we set point filter (the best performance)
Expand Down

0 comments on commit 0979eaf

Please sign in to comment.