Skip to content
Snippets Groups Projects
Commit 11bebcbc authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

more for MAINT-1955: Viewer crashes while login after clearing cache

parent a1c52b7c
No related branches found
No related tags found
No related merge requests found
...@@ -1937,7 +1937,11 @@ bool LLTextureCache::writeToFastCache(S32 id, LLPointer<LLImageRaw> raw, S32 dis ...@@ -1937,7 +1937,11 @@ bool LLTextureCache::writeToFastCache(S32 id, LLPointer<LLImageRaw> raw, S32 dis
openFastCache(); openFastCache();
mFastCachep->seek(APR_SET, offset); mFastCachep->seek(APR_SET, offset);
llassert_always(mFastCachep->write(mFastCachePadBuffer, TEXTURE_FAST_CACHE_ENTRY_SIZE) == TEXTURE_FAST_CACHE_ENTRY_SIZE);
//no need to do this assertion check. When it fails, let it fail quietly.
//this failure could happen because other viewer removes the fast cache file when clearing cache.
//--> llassert_always(mFastCachep->write(mFastCachePadBuffer, TEXTURE_FAST_CACHE_ENTRY_SIZE) == TEXTURE_FAST_CACHE_ENTRY_SIZE);
mFastCachep->write(mFastCachePadBuffer, TEXTURE_FAST_CACHE_ENTRY_SIZE);
closeFastCache(true); closeFastCache(true);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment