Small change

parent 2cff1a5c
......@@ -1030,14 +1030,12 @@ texture_font_get_glyph( texture_font_t * self,
assert( self->atlas );
/* Check if codepoint has been already loaded */
if( (glyph = texture_font_find_glyph( self, codepoint )) )
return glyph;
if( !(glyph = texture_font_find_glyph( self, codepoint )) )
/* Glyph has not been already loaded */
if( texture_font_load_glyph( self, codepoint ) )
return texture_font_find_glyph( self, codepoint );
if( texture_font_load_glyph( self, codepoint ) )
glyph = texture_font_find_glyph( self, codepoint );
return NULL;
return glyph;
}
// ----------------------------------------------- texture_font_get_glyph_gi ---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment