diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-11-29 20:33:13 +0200 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-11-29 20:33:13 +0200 |
commit | 27e4e245d948e4d11f78a272d969b533cfe65fbf (patch) | |
tree | eeef5d10decb9caa671eb8d9e42b02a4c11a6b72 /indra/llmath/llvolume.cpp | |
parent | 7a0ca277f82acd2511a5dbf33956c1665d14b957 (diff) | |
parent | cba1daaf6be4dfd031cd10d9aea07c7124d32726 (diff) |
Merge branch 'DRTVWR-542-meshopt' into DRTVWR-546
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 130f30bedc..c226315e5c 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -6348,9 +6348,9 @@ void LLVolumeFace::resizeVertices(S32 num_verts) if (num_verts) { //pad texture coordinate block end to allow for QWORD reads - S32 size = ((num_verts*sizeof(LLVector2)) + 0xF) & ~0xF; + S32 tc_size = ((num_verts*sizeof(LLVector2)) + 0xF) & ~0xF; - mPositions = (LLVector4a*) ll_aligned_malloc<64>(sizeof(LLVector4a)*2*num_verts+size); + mPositions = (LLVector4a*) ll_aligned_malloc<64>(sizeof(LLVector4a)*2*num_verts+tc_size); mNormals = mPositions+num_verts; mTexCoords = (LLVector2*) (mNormals+num_verts); |