fixed case where it could segfault
This commit is contained in:
parent
63cc7c671d
commit
1639d091db
|
|
@ -1345,7 +1345,7 @@ Rectangle GetGlyphAtlasRec(Font font, int codepoint)
|
|||
unsigned int TextLength(const char *text)
|
||||
{
|
||||
// use strlen since it uses vector operations
|
||||
return strlen(text);
|
||||
return text ? strlen(text) : 0;
|
||||
}
|
||||
|
||||
// Formatting of text with variables to 'embed'
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user