Skip to content

Commit

Permalink
Drop texture file list cache (#6660)
Browse files Browse the repository at this point in the history
  • Loading branch information
numberZero authored and SmallJoker committed Mar 10, 2018
1 parent ee20433 commit cf8d579
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/client/tile.cpp
Expand Up @@ -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"));
}
2 changes: 1 addition & 1 deletion src/client/tile.h
Expand Up @@ -339,4 +339,4 @@ struct TileSpec
TileLayer layers[MAX_TILE_LAYERS];
};

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

0 comments on commit cf8d579

Please sign in to comment.