diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index ac5cf527..7fdb2a46 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -375,7 +375,8 @@ void CEngine::ReloadAllTextures() m_app->GetEventQueue()->AddEvent(Event(EVENT_RELOAD_TEXTURES)); UpdateGroundSpotTextures(); - LoadAllTextures(); + // LoadAllTextures() is called from CRobotMain on EVENT_RELOAD_TEXTURES + // This is required because all dynamic textures need to be loaded first // recapture 3D scene if (m_worldCaptured) diff --git a/src/level/robotmain.cpp b/src/level/robotmain.cpp index 760d1d5d..d0f29ef6 100644 --- a/src/level/robotmain.cpp +++ b/src/level/robotmain.cpp @@ -689,6 +689,7 @@ bool CRobotMain::ProcessEvent(Event &event) ChangeColor(); UpdateMap(); } + m_engine->LoadAllTextures(); } if (event.type == EVENT_RESOLUTION_CHANGED)