summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-26 14:07:37 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-01-26 14:07:37 -0500
commit0b16411d302c940ff98ae5529821d9b5a4dbfbd7 (patch)
tree306b8a4cbf45515dfe482df4f5dbdff8810d835b /indra
parentc0fffdea8812e5eed8da9f341d3bfc9590301ada (diff)
assert fix for mempyNonAliased16 call
Diffstat (limited to 'indra')
-rwxr-xr-xindra/llmath/tests/alignment_test.cpp1
-rw-r--r--indra/llprimitive/llmodel.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/indra/llmath/tests/alignment_test.cpp b/indra/llmath/tests/alignment_test.cpp
index 044e05e961..8961b9d6d5 100755
--- a/indra/llmath/tests/alignment_test.cpp
+++ b/indra/llmath/tests/alignment_test.cpp
@@ -62,6 +62,7 @@ class MyVector4a
LLQuad mQ;
} LL_ALIGN_POSTFIX(16);
+
// Verify that aligned allocators perform as advertised.
template<> template<>
void alignment_test_object_t::test<1>()
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp
index cb32a510b8..28ed051c55 100644
--- a/indra/llprimitive/llmodel.cpp
+++ b/indra/llprimitive/llmodel.cpp
@@ -1026,7 +1026,8 @@ void LLModel::setVolumeFaceData(
if (tc.get())
{
- LLVector4a::memcpyNonAliased16((F32*) face.mTexCoords, (F32*) tc.get(), num_verts*2*sizeof(F32));
+ U32 tex_size = (num_verts*2*sizeof(F32)+0xF)&~0xF;
+ LLVector4a::memcpyNonAliased16((F32*) face.mTexCoords, (F32*) tc.get(), tex_size);
}
else
{