mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Drop texture file list cache (#6660)
This commit is contained in:
parent
ee20433425
commit
cf8d579abc
@ -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"));
|
||||
}
|
||||
|
@ -339,4 +339,4 @@ struct TileSpec
|
||||
TileLayer layers[MAX_TILE_LAYERS];
|
||||
};
|
||||
|
||||
const std::vector<std::string> &getTextureDirs();
|
||||
std::vector<std::string> getTextureDirs();
|
||||
|
Loading…
Reference in New Issue
Block a user