mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Fixed an additional issue where font textures were sometimes updated with empty glyhps
This commit is contained in:
parent
1d6701ca4c
commit
498bdbd119
|
@ -648,8 +648,10 @@ void Font::rebuildTextures()
|
||||||
static_cast<int>(it->second.texSize.y * tex->textureSize.y)};
|
static_cast<int>(it->second.texSize.y * tex->textureSize.y)};
|
||||||
|
|
||||||
// Upload to texture.
|
// Upload to texture.
|
||||||
mRenderer->updateTexture(tex->textureId, 0, Renderer::TextureType::RED, cursor.x, cursor.y,
|
if (glyphSize.x > 0 && glyphSize.y > 0) {
|
||||||
glyphSize.x, glyphSize.y, glyphSlot->bitmap.buffer);
|
mRenderer->updateTexture(tex->textureId, 0, Renderer::TextureType::RED, cursor.x,
|
||||||
|
cursor.y, glyphSize.x, glyphSize.y, glyphSlot->bitmap.buffer);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue