Verified Commit deea4c31 authored by Bernd Paysan's avatar Bernd Paysan
Browse files

Small change

parent 2cff1a5c
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -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 );
	    glyph = texture_font_find_glyph( self, codepoint );

    return NULL;
    return glyph;
}

// ----------------------------------------------- texture_font_get_glyph_gi ---