summaryrefslogtreecommitdiff
path: root/indra/llrender/llrender.cpp
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2013-04-22 22:11:41 -0600
committerXiaohong Bao <bao@lindenlab.com>2013-04-22 22:11:41 -0600
commitc978364e1eec987c70769e66d3b9342b321acbc4 (patch)
treeec662bf4763caa1aa0b2b4a530df98a06d5a0187 /indra/llrender/llrender.cpp
parent04d0d5a3ab0285f0d3acc7581cea6809343e86ab (diff)
for SH-4133: create a debug tool to show textures in active fetching
Diffstat (limited to 'indra/llrender/llrender.cpp')
-rw-r--r--indra/llrender/llrender.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp
index 4597d06260..630b9125a2 100644
--- a/indra/llrender/llrender.cpp
+++ b/indra/llrender/llrender.cpp
@@ -245,6 +245,11 @@ bool LLTexUnit::bind(LLTexture* texture, bool for_rendering, bool forceBind)
return texture->bindDefaultImage(mIndex);
}
+ if(texture->isActiveFetching()) //in debug
+ {
+ return texture->bindDebugImage(mIndex);
+ }
+
//in audit, replace the selected texture by the default one.
if ((mCurrTexture != gl_tex->getTexName()) || forceBind)
{