summaryrefslogtreecommitdiff
path: root/indra/newview/lltexlayer.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-06-04 14:14:36 -0400
committerLoren Shih <seraph@lindenlab.com>2010-06-04 14:14:36 -0400
commitf457eaf67d60c8e526ae19950e4cc67fa290c2bb (patch)
treeb065ffce66b59c603d7726fa00aae1ab9c14a53d /indra/newview/lltexlayer.cpp
parent4ec55cdb5b52d69a998630b1468a64982e612d7a (diff)
EXT-7526 WIP Add baked texture information to texture view
Added color, emphasis, and more information to texture view.
Diffstat (limited to 'indra/newview/lltexlayer.cpp')
-rw-r--r--indra/newview/lltexlayer.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/lltexlayer.cpp b/indra/newview/lltexlayer.cpp
index fc611fa9c8..1847ebb456 100644
--- a/indra/newview/lltexlayer.cpp
+++ b/indra/newview/lltexlayer.cpp
@@ -317,7 +317,7 @@ BOOL LLTexLayerSetBuffer::render()
return success;
}
-bool LLTexLayerSetBuffer::isInitialized(void) const
+BOOL LLTexLayerSetBuffer::isInitialized(void) const
{
return mGLTexturep.notNull() && mGLTexturep->isGLTextureCreated();
}
@@ -2287,10 +2287,13 @@ const std::string LLTexLayerSetBuffer::dumpTextureInfo() const
const BOOL is_high_res = !mNeedsUpload;
const U32 num_low_res = mNumLowresUploads;
const U32 upload_time = (U32)mNeedsUploadTimer.getElapsedTimeF32();
- const BOOL is_uploaded = !mUploadPending;
const std::string local_texture_info = gAgentAvatarp->debugDumpLocalTextureDataInfo(mTexLayerSet);
- std::string text = llformat("[ HiRes:%d LoRes:%d Done:%d ] [ Timer:%d ] %s",
- is_high_res, num_low_res, is_uploaded,
+ std::string status = "CREATING ";
+ if (mUploadPending) status = "UPLOADING";
+ if (!mNeedsUpload) status = " DONE ";
+ std::string text = llformat("[ %s ] [ HiRes:%d LoRes:%d ] [ Timer:%d ] %s",
+ status.c_str(),
+ is_high_res, num_low_res,
upload_time,
local_texture_info.c_str());
return text;