Skip to content

Commit cf8d579

Browse files
numberZeroSmallJoker
authored andcommittedMar 10, 2018
Drop texture file list cache (#6660)
1 parent ee20433 commit cf8d579

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎src/client/tile.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -2390,9 +2390,7 @@ video::ITexture *TextureSource::getShaderFlagsTexture(bool normalmap_present)
23902390

23912391
}
23922392

2393-
const std::vector<std::string> &getTextureDirs()
2393+
std::vector<std::string> getTextureDirs()
23942394
{
2395-
static thread_local std::vector<std::string> dirs =
2396-
fs::GetRecursiveDirs(g_settings->get("texture_path"));
2397-
return dirs;
2395+
return fs::GetRecursiveDirs(g_settings->get("texture_path"));
23982396
}

‎src/client/tile.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -339,4 +339,4 @@ struct TileSpec
339339
TileLayer layers[MAX_TILE_LAYERS];
340340
};
341341

342-
const std::vector<std::string> &getTextureDirs();
342+
std::vector<std::string> getTextureDirs();

0 commit comments

Comments
 (0)
Please sign in to comment.