Fixed dynamic textures not being reloaded properly
parent
a0b3f7a769
commit
bd4362e26c
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue