diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-11-14 18:55:36 +0200 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-11-14 18:55:36 +0200 |
commit | 6502e8bf33e6775d160ec90c666bb507bd9bb242 (patch) | |
tree | adf4a9a1833019e2a4d443cf81ed51f3d09b1b0f | |
parent | f986d1bcbed863ab247080f1b36a64d94e36e8bd (diff) |
MAINT-7228 Vertex buffer allocation failure handling
-rw-r--r-- | indra/newview/lldrawpoolavatar.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/lldrawpoolavatar.cpp b/indra/newview/lldrawpoolavatar.cpp index bb5c86f705..e38c7ee080 100644 --- a/indra/newview/lldrawpoolavatar.cpp +++ b/indra/newview/lldrawpoolavatar.cpp @@ -1613,6 +1613,14 @@ void LLDrawPoolAvatar::updateRiggedFaceVertexBuffer( } } + if (buffer.isNull() || + buffer->getNumVerts() != vol_face.mNumVertices || + buffer->getNumIndices() != vol_face.mNumIndices) + { + // Allocation failed + return; + } + if (sShaderLevel <= 0 && face->mLastSkinTime < avatar->getLastSkinTime()) { //perform software vertex skinning for this face |