mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Drop texture file list cache (#6660)
This commit is contained in:
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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue