From 7f55a321685b00d13638467dc27a8cdfb4037eef Mon Sep 17 00:00:00 2001 From: Tonya Souther Date: Sun, 28 Nov 2010 10:41:03 -0600 Subject: [PATCH] Diagnostics for marking images missing. --- indra/newview/llviewertexture.cpp | 4 ++++ indra/newview/llviewertexturelist.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp index 6160510c0e..357cad12d5 100644 --- a/indra/newview/llviewertexture.cpp +++ b/indra/newview/llviewertexture.cpp @@ -1875,6 +1875,9 @@ bool LLViewerFetchedTexture::updateFetch() if(mFullWidth > MAX_IMAGE_SIZE || mFullHeight > MAX_IMAGE_SIZE) { //discard all oversized textures. + llinfos << "Discarding oversized texture, width= " + << mFullWidth << ", height= " + << mFullHeight << llendl; destroyRawImage(); setIsMissingAsset(); mRawDiscardLevel = INVALID_DISCARD_LEVEL ; @@ -1905,6 +1908,7 @@ bool LLViewerFetchedTexture::updateFetch() // We finished but received no data if (current_discard < 0) { + llinfos << "Discarding image, no data received" << llendl; setIsMissingAsset(); desired_discard = -1; } diff --git a/indra/newview/llviewertexturelist.cpp b/indra/newview/llviewertexturelist.cpp index 275dfaa996..8774b133d2 100644 --- a/indra/newview/llviewertexturelist.cpp +++ b/indra/newview/llviewertexturelist.cpp @@ -1304,7 +1304,7 @@ void LLViewerTextureList::receiveImagePacket(LLMessageSystem *msg, void **user_d } -// We've been that the asset server does not contain the requested image id. +// We've been told that the asset server does not contain the requested image id. // static void LLViewerTextureList::processImageNotInDatabase(LLMessageSystem *msg,void **user_data) { @@ -1315,6 +1315,7 @@ void LLViewerTextureList::processImageNotInDatabase(LLMessageSystem *msg,void ** LLViewerFetchedTexture* image = gTextureList.findImage( image_id ); if( image ) { + llinfos << "Discarding image not in asset database" << llendl; image->setIsMissingAsset(); } }