Fix: Don't clear cache on LastJ2CVersion setting clear

meow-7.2.2
Kadah 2011-06-10 11:35:12 -07:00
parent e9afb1a59a
commit 3038746d83
1 changed files with 2 additions and 1 deletions

View File

@ -3479,7 +3479,8 @@ bool LLAppViewer::initCache()
// If the J2C has changed since the last run, clear the cache
const std::string j2c_info = LLImageJ2C::getEngineInfo();
if (j2c_info != gSavedSettings.getString("LastJ2CVersion"))
const std::string j2c_last = gSavedSettings.getString("LastJ2CVersion");
if (j2c_info != j2c_last && !j2c_last.empty())
{
mPurgeCache = true;
}