Drop texture file list cache (#6660)

This commit is contained in:
Vitaliy 2018-03-10 21:33:37 +03:00 committed by SmallJoker
parent ee20433425
commit cf8d579abc
2 changed files with 3 additions and 5 deletions

@ -2390,9 +2390,7 @@ video::ITexture *TextureSource::getShaderFlagsTexture(bool normalmap_present)
} }
const std::vector<std::string> &getTextureDirs() std::vector<std::string> getTextureDirs()
{ {
static thread_local std::vector<std::string> dirs = return fs::GetRecursiveDirs(g_settings->get("texture_path"));
fs::GetRecursiveDirs(g_settings->get("texture_path"));
return dirs;
} }

@ -339,4 +339,4 @@ struct TileSpec
TileLayer layers[MAX_TILE_LAYERS]; TileLayer layers[MAX_TILE_LAYERS];
}; };
const std::vector<std::string> &getTextureDirs(); std::vector<std::string> getTextureDirs();