summaryrefslogtreecommitdiff
path: root/indra/newview/lltexturecache.cpp
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2022-06-01 13:41:13 -0700
committerCosmic Linden <cosmic@lindenlab.com>2022-06-22 13:28:26 -0700
commit0d250e632c7816ada792b2ec8a63a3b0267daf8d (patch)
tree6a535d3e3331933b70cd0732575443c6949b729e /indra/newview/lltexturecache.cpp
parentccdeac322351f9ae60dc7955ff8b3db30dba5b77 (diff)
SL-17329: Fix texture cache not respecting DiskCachePercentOfTotal
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-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 d4fc6f3de2..9403e73b87 100644
--- a/indra/newview/lltexturecache.cpp
+++ b/indra/newview/lltexturecache.cpp
@@ -1042,7 +1042,8 @@ void LLTextureCache::setReadOnly(BOOL read_only)
mReadOnly = read_only ;
}
-//called in the main thread.
+// Called in the main thread.
+// Returns the unused amount of max_size if any
S64 LLTextureCache::initCache(ELLPath location, S64 max_size, BOOL texture_cache_mismatch)
{
llassert_always(getPending() == 0) ; //should not start accessing the texture cache before initialized.