summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-10 18:12:06 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-15 14:40:44 +0200
commit2d0d7c71e6f807a459d5e69899139772841d22ae (patch)
tree6773b7ba825b9fb2d6daff936fd021b5b6713acb /indra
parente3d86e4599ee5944eaa2cfe0147d1a117495b2de (diff)
SL-16485 Crash at memcpyNonAliased16
Diffstat (limited to 'indra')
-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 1da9e6c651..5d81d2c9b3 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;