We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee20433 commit cf8d579Copy full SHA for cf8d579
src/client/tile.cpp
@@ -2390,9 +2390,7 @@ video::ITexture *TextureSource::getShaderFlagsTexture(bool normalmap_present)
2390
2391
}
2392
2393
-const std::vector<std::string> &getTextureDirs()
+std::vector<std::string> getTextureDirs()
2394
{
2395
- static thread_local std::vector<std::string> dirs =
2396
- fs::GetRecursiveDirs(g_settings->get("texture_path"));
2397
- return dirs;
+ return fs::GetRecursiveDirs(g_settings->get("texture_path"));
2398
src/client/tile.h
@@ -339,4 +339,4 @@ struct TileSpec
339
TileLayer layers[MAX_TILE_LAYERS];
340
};
341
342
-const std::vector<std::string> &getTextureDirs();
+std::vector<std::string> getTextureDirs();
0 commit comments