summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorcallum <none@none>2012-08-29 11:16:22 -0700
committercallum <none@none>2012-08-29 11:16:22 -0700
commite4230e640aacda728c860ae43efaf7b8cd24f217 (patch)
tree42d4a875d295a9d8ff2ffbb40dcc895372dc1d3b /indra/newview/llvovolume.cpp
parent173364ed5da234c68dd6d0497e443f7aeb98e1b1 (diff)
MAINT-1455 FIX Media Texture not visually updated correctly
Reviewed by me. (Bao created)
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 5ea13ee0a6..a8bfc3ba46 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -1842,6 +1842,18 @@ void LLVOVolume::setNumTEs(const U8 num_tes)
return ;
}
+//virtual
+void LLVOVolume::changeTEImage(S32 index, LLViewerTexture* imagep)
+{
+ BOOL changed = (mTEImages[index] != imagep);
+ LLViewerObject::changeTEImage(index, imagep);
+ if (changed)
+ {
+ gPipeline.markTextured(mDrawable);
+ mFaceMappingChanged = TRUE;
+ }
+}
+
void LLVOVolume::setTEImage(const U8 te, LLViewerTexture *imagep)
{
BOOL changed = (mTEImages[te] != imagep);