Skip to content

Commit 97ff76c

Browse files
#4733 When moving the cache, the old cef_cache should be removed
1 parent c2460e2 commit 97ff76c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

indra/llrender/llshadermgr.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ void LLShaderMgr::clearShaderCache()
10481048
LL_INFOS("ShaderMgr") << "Removing shader cache at " << shader_cache << LL_ENDL;
10491049
const std::string mask = "*";
10501050
gDirUtilp->deleteFilesInDir(shader_cache, mask);
1051+
LLFile::rmdir(shader_cache);
10511052
mShaderBinaryCache.clear();
10521053
}
10531054

indra/newview/llappviewer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4481,6 +4481,7 @@ void LLAppViewer::purgeCache()
44814481
LLAppViewer::getTextureCache()->purgeCache(LL_PATH_CACHE);
44824482
LLVOCache::getInstance()->removeCache(LL_PATH_CACHE);
44834483
LLViewerShaderMgr::instance()->clearShaderCache();
4484+
purgeCefStaleCaches();
44844485
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE, ""), "*");
44854486
}
44864487

0 commit comments

Comments
 (0)