diff --git a/es-core/src/resources/Font.cpp b/es-core/src/resources/Font.cpp index 0329cb057..3069aa467 100644 --- a/es-core/src/resources/Font.cpp +++ b/es-core/src/resources/Font.cpp @@ -768,8 +768,10 @@ Font::Glyph* Font::getGlyph(const unsigned int id) glyph.rows = glyphSize.y; // Upload glyph bitmap to texture. - mRenderer->updateTexture(tex->textureId, 0, Renderer::TextureType::RED, cursor.x, cursor.y, - glyphSize.x, glyphSize.y, glyphSlot->bitmap.buffer); + if (glyphSize.x > 0 && glyphSize.y > 0) { + mRenderer->updateTexture(tex->textureId, 0, Renderer::TextureType::RED, cursor.x, cursor.y, + glyphSize.x, glyphSize.y, glyphSlot->bitmap.buffer); + } return &glyph; }