summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-07-06 21:10:22 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-07-06 21:24:25 +0300
commitc01388fb0b639172f0c0f29f80dd01646fc1b89c (patch)
tree947d9a0d1eb0463bd959eb493ccf28fc24b2c1c5 /indra
parent77ce594dec86eacadb39abf56c69d03b6f421a59 (diff)
SL-16793 Crash at LLProfile::addHole
addHole can be accessed from main tread and from mesh thread, safeguard pt
Diffstat (limited to 'indra')
-rw-r--r--indra/llmath/llvolume.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 5099920f32..47c4977afd 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -683,7 +683,7 @@ LLProfile::Face* LLProfile::addHole(const LLProfileParams& params, BOOL flat, F3
Face *face = addFace(mTotalOut, mTotal-mTotalOut,0,LL_FACE_INNER_SIDE, flat);
- static LLAlignedArray<LLVector4a,64> pt;
+ static thread_local LLAlignedArray<LLVector4a,64> pt;
pt.resize(mTotal) ;
for (S32 i=mTotalOut;i<mTotal;i++)