diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index f3e0d988..67831ea7 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -59,7 +59,7 @@ #include "ui/controls/interface.h" #include -#include +#include template<> Gfx::CEngine* CSingleton::m_instance = nullptr; @@ -2317,7 +2317,12 @@ bool CEngine::LoadAllTextures() if (! p2.tex2Name.empty()) { if (terrain) - p2.tex2 = LoadTexture("textures/"+p2.tex2Name, m_terrainTexParams); + { + if (! boost::starts_with(p2.tex2Name, "shadow")) // shadow ground textures are created dynamically + { + p2.tex2 = LoadTexture("textures/"+p2.tex2Name, m_terrainTexParams); + } + } else p2.tex2 = LoadTexture("textures/"+p2.tex2Name);