FIX: STORM-1141. Win7: 2.6.3 Beta1 crashes on startup if locale differs from English.
Force LLTextureCache::purgeAllTextures to get called in addition to normal cache purging.meow-7.2.2
parent
4895b24e38
commit
dab937ef5b
|
|
@ -3500,10 +3500,10 @@ bool LLAppViewer::initCache()
|
|||
LLAppViewer::getTextureCache()->setReadOnly(read_only) ;
|
||||
LLVOCache::getInstance()->setReadOnly(read_only);
|
||||
|
||||
BOOL texture_cache_mismatch = FALSE ;
|
||||
bool texture_cache_mismatch = false;
|
||||
if (gSavedSettings.getS32("LocalCacheVersion") != LLAppViewer::getTextureCacheVersion())
|
||||
{
|
||||
texture_cache_mismatch = TRUE ;
|
||||
texture_cache_mismatch = true;
|
||||
if(!read_only)
|
||||
{
|
||||
gSavedSettings.setS32("LocalCacheVersion", LLAppViewer::getTextureCacheVersion());
|
||||
|
|
@ -3517,7 +3517,9 @@ bool LLAppViewer::initCache()
|
|||
gSavedSettings.getBOOL("PurgeCacheOnNextStartup"))
|
||||
{
|
||||
gSavedSettings.setBOOL("PurgeCacheOnNextStartup", false);
|
||||
mPurgeCache = true;
|
||||
mPurgeCache = true;
|
||||
// STORM-1141 force purgeAllTextures to get called to prevent a crash here. -brad
|
||||
texture_cache_mismatch = true;
|
||||
}
|
||||
|
||||
// We have moved the location of the cache directory over time.
|
||||
|
|
|
|||
Loading…
Reference in New Issue