diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2022-07-21 10:32:56 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2022-07-21 15:19:00 -0700 |
commit | 4ef83bb8bd48aef3cd01b2c0f42ae61043388e3c (patch) | |
tree | 666b1870fd658dda6fef1125727b9382c1dc5250 /indra/llprimitive/llmodel.cpp | |
parent | 38cc06e43a92a10d73ab149944b3cff19b8da8ad (diff) |
SL-17801: Add various safeguards to keep triangle indices count valid
Diffstat (limited to 'indra/llprimitive/llmodel.cpp')
-rw-r--r-- | indra/llprimitive/llmodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index 75acb6cf9f..74f5e3f0c8 100644 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -371,6 +371,8 @@ void LLModel::setVolumeFaceData( U32 num_verts, U32 num_indices) { + llassert(num_indices % 3 == 0); + LLVolumeFace& face = mVolumeFaces[f]; face.resizeVertices(num_verts); |