summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-16 16:46:04 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-16 16:46:04 +0300
commitf451672b0c549092796a018997152cbeb57418b2 (patch)
tree20c31b4d6594f6827f27aaba5c785c8ee63c3419
parentdcac3f0514444684c57a97c6e01d32499da345d6 (diff)
SL-17475 Fix wrong remap buffer size
-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 04d3e9fc08..4a069b0f63 100644
--- a/indra/llmath/llvolume.cpp
+++ b/indra/llmath/llvolume.cpp
@@ -4956,7 +4956,7 @@ bool LLVolumeFace::VertexMapData::ComparePosition::operator()(const LLVector3& a
void LLVolumeFace::remap()
{
// Generate a remap buffer
- std::vector<unsigned int> remap(mNumIndices);
+ std::vector<unsigned int> remap(mNumVertices);
S32 remap_vertices_count = LLMeshOptimizer::generateRemapMultiU16(&remap[0],
mIndices,
mNumIndices,