From 5fc3066bdb3921203dfdb085b2690fd2d79cf350 Mon Sep 17 00:00:00 2001 From: Xiaohong Bao Date: Thu, 7 Nov 2013 15:36:45 -0700 Subject: add some debug code for possible gray baked avatar textures --- indra/newview/llviewertexture.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index f22074a8d6..fdbf2b015d 100755 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -2345,6 +2345,15 @@ bool LLViewerFetchedTexture::doLoadedCallbacks() } if(sCurrentTime - mLastCallBackActiveTime > MAX_INACTIVE_TIME && !mIsFetching) { + if (mFTType == FTT_SERVER_BAKE) + { + //output some debug info + llinfos << "baked texture: " << mID << "clears all call backs due to inactivity." << llendl; + llinfos << mUrl << llendl; + llinfos << "current discard: " << getDiscardLevel() << " current discard for fetch: " << getCurrentDiscardLevelForFetching() << + " Desired discard: " << getDesiredDiscardLevel() << "decode Pri: " << getDecodePriority() << llendl; + } + clearCallbackEntryList() ; //remove all callbacks. return false ; } @@ -2353,6 +2362,13 @@ bool LLViewerFetchedTexture::doLoadedCallbacks() if (isMissingAsset()) { + if (mFTType == FTT_SERVER_BAKE) + { + //output some debug info + llinfos << "baked texture: " << mID << "is missing." << llendl; + llinfos << mUrl << llendl; + } + for(callback_list_t::iterator iter = mLoadedCallbackList.begin(); iter != mLoadedCallbackList.end(); ) { -- cgit v1.2.3