1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

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

View File

@@ -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 =
fs::GetRecursiveDirs(g_settings->get("texture_path"));
return dirs;
return fs::GetRecursiveDirs(g_settings->get("texture_path"));
}