diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2016-11-16 10:56:05 -0500 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2016-11-16 10:56:05 -0500 |
commit | 934b94e74a94f13521b67bdd016a5b591e16fe13 (patch) | |
tree | d181a0811e1f6773f0a4bd44c72dae48fae45a4e /indra/llrender | |
parent | af349febb3275bc1d75026f1f022595b50abda24 (diff) | |
parent | 0c8556921d05a356afd4014b966ee8c0e1002e36 (diff) |
DRTVWR-418: pull in new viewer-release via viewer64
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llrender.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llrender.cpp b/indra/llrender/llrender.cpp index 69420dd0bb..0e242a20f6 100644 --- a/indra/llrender/llrender.cpp +++ b/indra/llrender/llrender.cpp @@ -2039,7 +2039,8 @@ void LLRender::vertexBatchPreTransformed(LLVector3* verts, S32 vert_count) } } - mVerticesp[mCount] = mVerticesp[mCount-1]; + if( mCount > 0 ) // ND: Guard against crashes if mCount is zero, yes it can happen + mVerticesp[mCount] = mVerticesp[mCount-1]; } void LLRender::vertexBatchPreTransformed(LLVector3* verts, LLVector2* uvs, S32 vert_count) |