summaryrefslogtreecommitdiff
path: root/indra/llrender/llrendertarget.cpp
diff options
context:
space:
mode:
authorGraham Madarasz (Graham Linden) <graham@lindenlab.com>2013-02-21 16:50:04 -0800
committerGraham Madarasz (Graham Linden) <graham@lindenlab.com>2013-02-21 16:50:04 -0800
commit2fd0e6e8f9cea68fbfe77282d623e70c64b52469 (patch)
tree58209b1da794413be879b10e7444ced701f5adf1 /indra/llrender/llrendertarget.cpp
parent69133ca4e318fc93fed39589c9221251440bcb96 (diff)
Merge viewer-cat and resolve conflict with alternate self
Diffstat (limited to 'indra/llrender/llrendertarget.cpp')
-rw-r--r--indra/llrender/llrendertarget.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp
index e35feda2d5..e501d0495b 100644
--- a/indra/llrender/llrendertarget.cpp
+++ b/indra/llrender/llrendertarget.cpp
@@ -458,6 +458,12 @@ U32 LLRenderTarget::getTexture(U32 attachment) const
return mTex[attachment];
}
+U32 LLRenderTarget::getNumTextures() const
+{
+ return mTex.size();
+}
+
+
void LLRenderTarget::bindTexture(U32 index, S32 channel)
{
gGL.getTexUnit(channel)->bindManual(mUsage, getTexture(index));