diff options
author | Vitaliy <silverunicorn2011@yandex.ru> | 2018-03-10 21:33:37 +0300 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-03-10 19:33:37 +0100 |
commit | cf8d579abc00fee20fb1dfa2e87aaf9dddbee18c (patch) | |
tree | 8974682fc0556e3498d6575aa7a4f166bbf3d4cc /src/client/tile.cpp | |
parent | ee20433425f01998c2903d9f8185ce9dd3dc6e77 (diff) | |
download | minetest-cf8d579abc00fee20fb1dfa2e87aaf9dddbee18c.tar.gz minetest-cf8d579abc00fee20fb1dfa2e87aaf9dddbee18c.tar.bz2 minetest-cf8d579abc00fee20fb1dfa2e87aaf9dddbee18c.zip |
Drop texture file list cache (#6660)
Diffstat (limited to 'src/client/tile.cpp')
-rw-r--r-- | src/client/tile.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/tile.cpp b/src/client/tile.cpp index 91a3c0a38..a88163a50 100644 --- a/src/client/tile.cpp +++ b/src/client/tile.cpp @@ -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")); } |