diff options
author | Sabrina Shanman <cosmic@lindenlab.com> | 2022-07-21 23:19:06 +0000 |
---|---|---|
committer | Sabrina Shanman <cosmic@lindenlab.com> | 2022-07-21 23:19:06 +0000 |
commit | 16fe16f3637d111da7885ae26f663d96320944c4 (patch) | |
tree | 39f3f058bacbcf79b987062676cb2a1acd43adfd /indra/llprimitive/llmodel.cpp | |
parent | 798e38051c11360007c0cb0e3b74b34582d11b06 (diff) | |
parent | 4ef83bb8bd48aef3cd01b2c0f42ae61043388e3c (diff) |
Merged in SL-17801 (pull request #1070)
SL-17801: Add various safeguards to keep triangle indices count valid
Approved-by: Andrey Lihatskiy
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); |