Fixed bug with empty string, allowing local fonts to be loaded.

This commit is contained in:
2023-06-17 22:15:57 -07:00
parent 6a202edf23
commit 0ea7f1d749
5 changed files with 38 additions and 17 deletions

View File

@ -296,6 +296,8 @@ void UILabel::rebufferQuads(const std::vector<struct UILabelText> newTexts) {
realNewTexts.push_back(realText);
}
lines.push_back(currentLine);
// Create mesh
if(!vertices.empty()) {
this->mesh.createBuffers(