Skip to content
Snippets Groups Projects
Commit 6502e8bf authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-7228 Vertex buffer allocation failure handling

parent f986d1bc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment