mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +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 =
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user