summaryrefslogtreecommitdiff
path: root/indra/llmath
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2024-07-09 17:00:31 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2024-07-10 16:44:55 +0200
commit35246a95039e242c6167f6c52a0c6cc49e004f23 (patch)
tree53570a6e9bc31a3688ecf22aa0940d44d1b2c54a /indra/llmath
parent94ef434cbfa3e1220731a9ddf53066b36bd23784 (diff)
#1959 BugSplat Crash #1489790: VCRUNTIME140!memcmp(72)
Diffstat (limited to 'indra/llmath')
-rw-r--r--indra/llmath/llvolume.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp
index 1c0befb3da..56ac22ca18 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -5462,7 +5462,11 @@ bool LLVolumeFace::cacheOptimize(bool gen_tangents)
U32 stream_count = data.w.empty() ? 4 : 5;
- S32 vert_count = static_cast<S32>(meshopt_generateVertexRemapMulti(&remap[0], nullptr, data.p.size(), data.p.size(), mos, stream_count));
+ S32 vert_count = 0;
+ if (!data.p.empty())
+ {
+ vert_count = static_cast<S32>(meshopt_generateVertexRemapMulti(&remap[0], nullptr, data.p.size(), data.p.size(), mos, stream_count));
+ }
if (vert_count < 65535 && vert_count != 0)
{