summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2019-06-25 03:32:23 +0300
committerAndreyL ProductEngine <alihatskiy@productengine.com>2019-06-25 03:32:23 +0300
commit7dbadf4c8bc7400ac4108217eccb0fcc6c164f93 (patch)
tree27c367bf42914c9405d8e9d8035a7083c2af96c8 /indra
parent09540c8cd0c6a89eb392d59dab04487246189979 (diff)
Mac buildfix
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/lltexturecache.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp
index 9969631843..cf1ee04644 100644
--- a/indra/newview/lltexturecache.cpp
+++ b/indra/newview/lltexturecache.cpp
@@ -1747,7 +1747,8 @@ void LLTextureCache::purgeTexturesLazy(F32 time_limit_sec)
id_map_t::iterator iter_header = mHeaderIDMap.find(entry.mID);
if (iter_header != mHeaderIDMap.end() && iter_header->second == idx)
{
- removeEntry(idx, entry, getTextureFileName(entry.mID));
+ std::string tex_filename = getTextureFileName(entry.mID);
+ removeEntry(idx, entry, tex_filename);
writeEntryToHeaderImmediately(idx, entry);
}
}