diff options
author | Oz Linden <oz@lindenlab.com> | 2011-04-21 14:30:58 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-04-21 14:30:58 -0400 |
commit | 49ecf8efbc58f4030f3968c9db613aba9d99f0c2 (patch) | |
tree | f5b9985ab298acc3adfb81d94327e7acd8c2d86b /indra/newview | |
parent | da7cd9f8117757cd6acb0a5e93bc3c60443374f9 (diff) | |
parent | da8f6c675e9a58d4b808aa0ba2917e767106d7a0 (diff) |
merge back fixes for STORM-1088 and (possibly) STORM-1141
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llappviewer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 061ef7268e..9de2941c4a 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3531,10 +3531,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()); @@ -3548,7 +3548,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. |