diff options
author | callum_linden <none@none> | 2018-01-05 18:15:07 -0800 |
---|---|---|
committer | callum_linden <none@none> | 2018-01-05 18:15:07 -0800 |
commit | 2b681ae8aa42afba271ccd3f9cddf21ba85cde46 (patch) | |
tree | ef87b92c9e0c789967613358a3272307039e0c25 /indra/newview/lltexturecache.cpp | |
parent | 508e754eb4501b9c3fbfbfde52ca7ae8ed0f06b7 (diff) | |
parent | 6659192a351f61a1c2476a6d34cc5fd6c8d6123f (diff) |
Automated merge with tip of viewer64
Diffstat (limited to 'indra/newview/lltexturecache.cpp')
-rw-r--r-- | indra/newview/lltexturecache.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 435d833345..371da5d0a2 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1054,11 +1054,11 @@ S64 LLTextureCache::initCache(ELLPath location, S64 max_size, BOOL texture_cache return max_size ; } } - + if (!mReadOnly) { LLFile::mkdir(mTexturesDirName); - + const char* subdirs = "0123456789abcdef"; for (S32 i=0; i<16; i++) { @@ -1602,11 +1602,11 @@ void LLTextureCache::clearCorruptedCache() closeHeaderEntriesFile();//close possible file handler purgeAllTextures(false) ; //clear the cache. - + if (!mReadOnly) //regenerate the directory tree if not exists. { LLFile::mkdir(mTexturesDirName); - + const char* subdirs = "0123456789abcdef"; for (S32 i=0; i<16; i++) { |