From 8351acc78c0fe72da2e5bf47b206ef9caf4b329c Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Fri, 5 Feb 2016 19:30:16 +0200 Subject: MAINT-6105 FIXED Lowering Cache Size and relogging results in many corrupted textures --- indra/newview/lltexturecache.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'indra/newview') diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index bcdf8360ed..37cc908e84 100755 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1491,6 +1491,7 @@ void LLTextureCache::readHeaderCache() new_entries.push_back(entry); } } + mFreeList.clear(); // recreating list, no longer valid. llassert_always(new_entries.size() <= sCacheMaxEntries); mHeaderEntriesInfo.mEntries = new_entries.size(); writeEntriesHeader(); -- cgit v1.2.3