diff options
author | Dave Parks <davep@lindenlab.com> | 2010-04-16 15:53:26 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-04-16 15:53:26 -0500 |
commit | d568dbd840f8d4c7c87863abfd523054acfa2e2c (patch) | |
tree | 509a6c603d2182c71adbdbfd5d3c467067126ae0 /indra/newview/llviewerjointmesh.cpp | |
parent | 724e45baebd98f840fce0e3dfbd6edd5741e43cb (diff) |
Fix for busted optimizations.
(transplanted from 6fae1a167f287f23a0cdc5dac8dfa2b74444efcf)
Diffstat (limited to 'indra/newview/llviewerjointmesh.cpp')
-rw-r--r-- | indra/newview/llviewerjointmesh.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewerjointmesh.cpp b/indra/newview/llviewerjointmesh.cpp index b125c79f61..c65946a574 100644 --- a/indra/newview/llviewerjointmesh.cpp +++ b/indra/newview/llviewerjointmesh.cpp @@ -758,14 +758,18 @@ void LLViewerJointMesh::updateFaceData(LLFace *face, F32 pixel_area, BOOL damp_w const U32 idx_count = mMesh->getNumFaces()*3; + indicesp += mMesh->mFaceIndexOffset; + U16* __restrict idx = indicesp.get(); S32* __restrict src_idx = (S32*) mMesh->getFaces(); i = 0; + const S32 offset = (S32) mMesh->mFaceVertexOffset; + do { - *(idx++) = *(src_idx++); + *(idx++) = *(src_idx++)+offset; } while (++i < idx_count); } |