summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2012-07-14 09:30:09 -0400
committerOz Linden <oz@lindenlab.com>2012-07-14 09:30:09 -0400
commit509408f393b8eb58799678adde801675a4d4d600 (patch)
tree92c5213b65afd9dff5a496569e6dc85c87502f99 /indra/newview/llface.cpp
parentc3d9f0e41cc0cde6f1383225a8937d128e5838d8 (diff)
parenta4df79bcdc27ab06711f1f392a4f69bf832e1916 (diff)
merge back beta fixes for DRTVWR-180
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 4f3208474d..08b5c27a68 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1943,15 +1943,12 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
LLVector4a texIdx;
- U8 index = mTextureIndex < 255 ? mTextureIndex : 0;
+ S32 index = mTextureIndex < 255 ? mTextureIndex : 0;
F32 val = 0.f;
- U8* vp = (U8*) &val;
- vp[0] = index;
- vp[1] = 0;
- vp[2] = 0;
- vp[3] = 0;
-
+ S32* vp = (S32*) &val;
+ *vp = index;
+
llassert(index <= LLGLSLShader::sIndexedTextureChannels-1);
LLVector4Logical mask;