From c959177214ca5c69221e648f771958a35c8aece5 Mon Sep 17 00:00:00 2001 From: thickbrick Date: Fri, 14 Jan 2011 23:59:54 +0200 Subject: Fix #771: some small lossless textures fail to load from cache from V2. --- linden/indra/newview/lltexturefetch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/linden/indra/newview/lltexturefetch.cpp b/linden/indra/newview/lltexturefetch.cpp index f93a574..6ab4d24 100644 --- a/linden/indra/newview/lltexturefetch.cpp +++ b/linden/indra/newview/lltexturefetch.cpp @@ -724,6 +724,7 @@ bool LLTextureFetchWorker::doWork(S32 param) { // we have enough data, decode it llassert_always(mFormattedImage->getDataSize() > 0); + mLoadedDiscard = mDesiredDiscard; mState = DECODE_IMAGE; mWriteToCacheState = NOT_WRITE ; LL_DEBUGS("Texture") << mID << ": Cached. Bytes: " << mFormattedImage->getDataSize() -- cgit v1.1