Skip to content
Permalink
Browse files

Drop texture file list cache (#6660)

  • Loading branch information
numberZero authored and SmallJoker committed Mar 10, 2018
1 parent ee20433 commit cf8d579abc00fee20fb1dfa2e87aaf9dddbee18c
Showing with 3 additions and 5 deletions.
  1. +2 −4 src/client/tile.cpp
  2. +1 −1 src/client/tile.h
@@ -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"));
}
@@ -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.