aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltextureview.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltextureview.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/linden/indra/newview/lltextureview.cpp b/linden/indra/newview/lltextureview.cpp
index 4df5444..06a4ea0 100644
--- a/linden/indra/newview/lltextureview.cpp
+++ b/linden/indra/newview/lltextureview.cpp
@@ -49,7 +49,7 @@
49#include "llviewerobject.h" 49#include "llviewerobject.h"
50#include "llviewerimage.h" 50#include "llviewerimage.h"
51#include "llviewerimagelist.h" 51#include "llviewerimagelist.h"
52#include "viewer.h" 52#include "llappviewer.h"
53 53
54extern F32 texmem_lower_bound_scale; 54extern F32 texmem_lower_bound_scale;
55 55
@@ -145,7 +145,7 @@ void LLTextureBar::draw()
145 } 145 }
146 146
147 LLColor4 color; 147 LLColor4 color;
148 if (mImagep->getID() == gTextureFetch->mDebugID) 148 if (mImagep->getID() == LLAppViewer::getTextureFetch()->mDebugID)
149 { 149 {
150 color = LLColor4::cyan2; 150 color = LLColor4::cyan2;
151 } 151 }
@@ -347,7 +347,7 @@ BOOL LLTextureBar::handleMouseDown(S32 x, S32 y, MASK mask)
347{ 347{
348 if ((mask & (MASK_CONTROL|MASK_SHIFT|MASK_ALT)) == MASK_ALT) 348 if ((mask & (MASK_CONTROL|MASK_SHIFT|MASK_ALT)) == MASK_ALT)
349 { 349 {
350 gTextureFetch->mDebugID = mImagep->getID(); 350 LLAppViewer::getTextureFetch()->mDebugID = mImagep->getID();
351 return TRUE; 351 return TRUE;
352 } 352 }
353 return LLView::handleMouseDown(x,y,mask); 353 return LLView::handleMouseDown(x,y,mask);
@@ -469,9 +469,9 @@ void LLGLTexMemBar::draw()
469 469
470 text = llformat("Textures: Count: %d Fetch: %d(%d) Pkts:%d(%d) Cache R/W: %d/%d LFS:%d IW:%d(%d) RAW:%d", 470 text = llformat("Textures: Count: %d Fetch: %d(%d) Pkts:%d(%d) Cache R/W: %d/%d LFS:%d IW:%d(%d) RAW:%d",
471 gImageList.getNumImages(), 471 gImageList.getNumImages(),
472 gTextureFetch->getNumRequests(), gTextureFetch->getNumDeletes(), 472 LLAppViewer::getTextureFetch()->getNumRequests(), LLAppViewer::getTextureFetch()->getNumDeletes(),
473 gTextureFetch->mPacketCount, gTextureFetch->mBadPacketCount, 473 LLAppViewer::getTextureFetch()->mPacketCount, LLAppViewer::getTextureFetch()->mBadPacketCount,
474 gTextureCache->getNumReads(), gTextureCache->getNumWrites(), 474 LLAppViewer::getTextureCache()->getNumReads(), LLAppViewer::getTextureCache()->getNumWrites(),
475 LLLFSThread::sLocal->getPending(), 475 LLLFSThread::sLocal->getPending(),
476 LLImageWorker::sCount, LLImageWorker::getWorkerThread()->getNumDeletes(), 476 LLImageWorker::sCount, LLImageWorker::getWorkerThread()->getNumDeletes(),
477 LLImageRaw::sRawImageCount); 477 LLImageRaw::sRawImageCount);
@@ -480,7 +480,7 @@ void LLGLTexMemBar::draw()
480 text_color, LLFontGL::LEFT, LLFontGL::TOP); 480 text_color, LLFontGL::LEFT, LLFontGL::TOP);
481 481
482 S32 dx1 = 0; 482 S32 dx1 = 0;
483 if (gTextureFetch->mDebugPause) 483 if (LLAppViewer::getTextureFetch()->mDebugPause)
484 { 484 {
485 LLFontGL::sMonospace->renderUTF8("!", 0, title_x1, line_height, 485 LLFontGL::sMonospace->renderUTF8("!", 0, title_x1, line_height,
486 text_color, LLFontGL::LEFT, LLFontGL::TOP); 486 text_color, LLFontGL::LEFT, LLFontGL::TOP);
@@ -781,7 +781,7 @@ BOOL LLTextureView::handleMouseDown(S32 x, S32 y, MASK mask)
781 } 781 }
782 if ((mask & (MASK_CONTROL|MASK_SHIFT|MASK_ALT)) == (MASK_CONTROL|MASK_SHIFT)) 782 if ((mask & (MASK_CONTROL|MASK_SHIFT|MASK_ALT)) == (MASK_CONTROL|MASK_SHIFT))
783 { 783 {
784 gTextureFetch->mDebugPause = !gTextureFetch->mDebugPause; 784 LLAppViewer::getTextureFetch()->mDebugPause = !LLAppViewer::getTextureFetch()->mDebugPause;
785 return TRUE; 785 return TRUE;
786 } 786 }
787 if (mask & MASK_SHIFT) 787 if (mask & MASK_SHIFT)