Fix cache thinking once full, always full.

This commit is contained in:
Siana Gearz
2012-02-02 08:43:01 +01:00
parent b5ec7fe015
commit 7694f915f5

View File

@@ -1969,14 +1969,14 @@ void LLTextureCache::removeEntry(S32 idx, Entry& entry, std::string& filename, b
}
}
entry.mImageSize = -1;
entry.mBodySize = 0;
mTexturesSizeTotal -= entry.mBodySize;
entry.mImageSize = -1;
entry.mBodySize = 0;
mHeaderIDMap.erase(entry.mID);
mTexturesSizeMap.erase(entry.mID);
mTexturesSizeTotal -= entry.mBodySize;
mFreeList.insert(idx);
}
mFreeList.insert(idx);
}
if (remove_file && file_maybe_exists)
{