summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-02-05 19:30:16 +0200
committerandreykproductengine <akleshchev@productengine.com>2016-02-05 19:30:16 +0200
commit8351acc78c0fe72da2e5bf47b206ef9caf4b329c (patch)
tree9b7405bbf70874354711153d2e1a887ed1e6c365 /indra
parent9b3d316bf51e5615d7259f93aa7acace3df0268e (diff)
MAINT-6105 FIXED Lowering Cache Size and relogging results in many corrupted textures
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/lltexturecache.cpp1
1 files changed, 1 insertions, 0 deletions
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();