diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics/font.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/graphics/font.c b/src/graphics/font.c index 603b1d4..9a99f22 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -193,10 +193,6 @@ int mgl_font_get_glyph(mgl_font *self, uint32_t codepoint, mgl_font_glyph *glyph */ const int glyph_index = stbtt_FindGlyphIndex(self->font_info, codepoint); - if(glyph_index == 0) { - memset(glyph, 0, sizeof(mgl_font_glyph)); - return -1; - } const float font_scale = stbtt_ScaleForPixelHeight(self->font_info, self->character_size*GLYPH_UPSAMPLE); int advance = 0; |