1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Fix black font and menu header when game exits in background (#16131)

This commit is contained in:
grorp 2025-05-14 07:23:53 -04:00 committed by GitHub
parent 5f06885ffa
commit 959a8b5b8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 4 deletions

View file

@ -117,6 +117,10 @@ GUIEngine::GUIEngine(JoystickController *joystick,
m_data(data),
m_kill(kill)
{
// Go back to our mainmenu fonts
// Delayed until mainmenu initialization because of #15883
g_fontengine->clearMediaFonts();
// initialize texture pointers
for (image_definition &texture : m_textures) {
texture.texture = NULL;