summaryrefslogtreecommitdiff
path: root/indra/newview/llviewertexture.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-11 10:22:50 -0800
committerJames Cook <james@lindenlab.com>2009-12-11 10:22:50 -0800
commita87b99cd950de20dc55e1ae6ce7186863a554326 (patch)
tree43d1385397cbefac07934588824a3d0716fc6365 /indra/newview/llviewertexture.cpp
parentb26694f2ab4d88fb8a0e4b1f0e8733f111af4522 (diff)
parentc74d5c483cbd75c5e2a0b17c8980755a9932c53a (diff)
Merge, fixed conflict in panel_preferences_sound.xml
Diffstat (limited to 'indra/newview/llviewertexture.cpp')
-rw-r--r--indra/newview/llviewertexture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llviewertexture.cpp b/indra/newview/llviewertexture.cpp
index 0d29efaedf..a5a40e9c2c 100644
--- a/indra/newview/llviewertexture.cpp
+++ b/indra/newview/llviewertexture.cpp
@@ -2879,7 +2879,8 @@ BOOL LLViewerMediaTexture::findFaces()
}
S32 face_id = -1 ;
- while((face_id = obj->getFaceIndexWithMediaImpl(mMediaImplp, face_id)) > -1)
+ S32 num_faces = obj->mDrawable->getNumFaces() ;
+ while((face_id = obj->getFaceIndexWithMediaImpl(mMediaImplp, face_id)) > -1 && face_id < num_faces)
{
LLFace* facep = obj->mDrawable->getFace(face_id) ;
if(facep)