mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
[examples] text_font_sdf - Corrected bug
This commit is contained in:
@ -622,6 +622,12 @@ Image GenImageFontAtlas(const CharInfo *chars, Rectangle **charRecs, int charsCo
|
||||
{
|
||||
Image atlas = { 0 };
|
||||
|
||||
if (chars == NULL)
|
||||
{
|
||||
TraceLog(LOG_WARNING, "FONT: Provided chars info not valid, returning empty image atlas");
|
||||
return atlas;
|
||||
}
|
||||
|
||||
*charRecs = NULL;
|
||||
|
||||
// In case no chars count provided we suppose default of 95
|
||||
|
||||
Reference in New Issue
Block a user