summaryrefslogtreecommitdiff
path: root/indra/newview/lltextureview.cpp
diff options
context:
space:
mode:
authorMark Palange <palange@lindenlab.com>2008-11-21 01:18:39 +0000
committerMark Palange <palange@lindenlab.com>2008-11-21 01:18:39 +0000
commitac68eb16a2dac453fe85b7218297f561b8fc96ca (patch)
treea1e26d95326b610c6d2a740ee80071bfb866d8e9 /indra/newview/lltextureview.cpp
parent77c108b2c4879fbbb168f91fed7763a0b557ecab (diff)
Merging the changes in viewer_1-22-0 (1.22 RC0) back into trunk, revs. 101837 to 103519
Diffstat (limited to 'indra/newview/lltextureview.cpp')
-rw-r--r--indra/newview/lltextureview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/indra/newview/lltextureview.cpp b/indra/newview/lltextureview.cpp
index 14fa73d3b1..40be40d9f6 100644
--- a/indra/newview/lltextureview.cpp
+++ b/indra/newview/lltextureview.cpp
@@ -383,9 +383,9 @@ private:
void LLGLTexMemBar::draw()
{
- S32 bound_mem = LLViewerImage::sBoundTextureMemory;
+ S32 bound_mem = (LLViewerImage::sBoundTextureMemory >> 20);
S32 max_bound_mem = LLViewerImage::sMaxBoundTextureMem;
- S32 total_mem = LLViewerImage::sTotalTextureMemory;
+ S32 total_mem = (LLViewerImage::sTotalTextureMemory >> 20);
S32 max_total_mem = LLViewerImage::sMaxTotalTextureMem;
F32 discard_bias = LLViewerImage::sDesiredDiscardBias;
S32 line_height = (S32)(LLFontGL::sMonospace->getLineHeight() + .5f);
@@ -396,10 +396,10 @@ void LLGLTexMemBar::draw()
std::string text;
text = llformat("GL Tot: %d/%d MB Bound: %d/%d MB Discard Bias: %.2f",
- total_mem/(1024*1024),
- max_total_mem/(1024*1024),
- bound_mem/(1024*1024),
- max_bound_mem/(1024*1024),
+ total_mem,
+ max_total_mem,
+ bound_mem,
+ max_bound_mem,
discard_bias);
LLFontGL::sMonospace->renderUTF8(text, 0, 0, line_height*3,