Fixed dynamic textures not being reloaded properly

master
krzys-h 2016-06-19 19:57:55 +02:00
parent a0b3f7a769
commit bd4362e26c
2 changed files with 3 additions and 1 deletions

View File

@ -375,7 +375,8 @@ void CEngine::ReloadAllTextures()
m_app->GetEventQueue()->AddEvent(Event(EVENT_RELOAD_TEXTURES)); m_app->GetEventQueue()->AddEvent(Event(EVENT_RELOAD_TEXTURES));
UpdateGroundSpotTextures(); 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 // recapture 3D scene
if (m_worldCaptured) if (m_worldCaptured)

View File

@ -689,6 +689,7 @@ bool CRobotMain::ProcessEvent(Event &event)
ChangeColor(); ChangeColor();
UpdateMap(); UpdateMap();
} }
m_engine->LoadAllTextures();
} }
if (event.type == EVENT_RESOLUTION_CHANGED) if (event.type == EVENT_RESOLUTION_CHANGED)