summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-10 18:12:06 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-11 01:52:13 +0200
commit6583fdf526c356b47122de3894b0fb68d83ae50b (patch)
treef70a99283b0314680fea9fdfeb7403e99641b23e /indra/newview
parent7414f71880b3ecda58a66233aeade8325535cae0 (diff)
SL-16485 Crash at memcpyNonAliased16
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llmodelpreview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index 4c20f941ce..5a8c1b474a 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -1325,8 +1325,8 @@ F32 LLModelPreview::genMeshOptimizerPerModel(LLModel *base_model, LLModel *targe
LLVector4a::memcpyNonAliased16((F32*)(combined_normals + combined_positions_shift), (F32*)face.mNormals, copy_bytes);
// tex coords
- copy_bytes = (face.mNumVertices * sizeof(LLVector2) + 0xF) & ~0xF;
- LLVector4a::memcpyNonAliased16((F32*)(combined_tex_coords + combined_positions_shift), (F32*)face.mTexCoords, copy_bytes);
+ copy_bytes = face.mNumVertices * sizeof(LLVector2);
+ memcpy((void*)(combined_tex_coords + combined_positions_shift), (void*)face.mTexCoords, copy_bytes);
combined_positions_shift += face.mNumVertices;