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 9431ecfe00
commit 55490a9918
6 changed files with 41 additions and 36 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(