mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -970,6 +970,8 @@ void Game::run()
|
|||
|
||||
framemarker.start();
|
||||
|
||||
g_fontengine->handleReload();
|
||||
|
||||
const auto current_dynamic_info = ClientDynamicInfo::getCurrent();
|
||||
if (!current_dynamic_info.equal(client_display_info)) {
|
||||
client_display_info = current_dynamic_info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue