summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerjointmesh.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-04 15:21:23 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-04 15:21:23 -0500
commit1435a8b9e6203911d2ebe9e3ba217f8eb20e3140 (patch)
tree158c5dcd824aca1d01f0f119849458739d3f451e /indra/newview/llviewerjointmesh.cpp
parentd285f78e91dd18b0dfa2608faf45738af1e637bd (diff)
SH-2789 WIP - stricter calling of memcpyNonAliased16
Diffstat (limited to 'indra/newview/llviewerjointmesh.cpp')
-rwxr-xr-x[-rw-r--r--]indra/newview/llviewerjointmesh.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llviewerjointmesh.cpp b/indra/newview/llviewerjointmesh.cpp
index 76f4e18c27..d604687678 100644..100755
--- a/indra/newview/llviewerjointmesh.cpp
+++ b/indra/newview/llviewerjointmesh.cpp
@@ -731,8 +731,10 @@ void LLViewerJointMesh::updateFaceData(LLFace *face, F32 pixel_area, BOOL damp_w
F32* vw = (F32*) vertex_weightsp.get();
F32* cw = (F32*) clothing_weightsp.get();
- LLVector4a::memcpyNonAliased16(tc, (F32*) mMesh->getTexCoords(), num_verts*2*sizeof(F32));
- LLVector4a::memcpyNonAliased16(vw, (F32*) mMesh->getWeights(), num_verts*sizeof(F32));
+ S32 tc_size = (num_verts*2*sizeof(F32)+0xF) & ~0xF;
+ LLVector4a::memcpyNonAliased16(tc, (F32*) mMesh->getTexCoords(), tc_size);
+ S32 vw_size = (num_verts*sizeof(F32)+0xF) & ~0xF;
+ LLVector4a::memcpyNonAliased16(vw, (F32*) mMesh->getWeights(), vw_size);
LLVector4a::memcpyNonAliased16(cw, (F32*) mMesh->getClothingWeights(), num_verts*4*sizeof(F32));
}