mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Reload font manager in main thread to avoid a crash (#15900)
This commit is contained in:
parent
4b85062caf
commit
c07499ccfc
4 changed files with 24 additions and 4 deletions
|
@ -337,6 +337,8 @@ void GUIEngine::run()
|
|||
fps_control.limit(device, &dtime);
|
||||
framemarker.start();
|
||||
|
||||
g_fontengine->handleReload();
|
||||
|
||||
if (device->isWindowVisible()) {
|
||||
// check if we need to update the "upper left corner"-text
|
||||
if (text_height != g_fontengine->getTextHeight()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue