MAINT-7228 Vertex buffer allocation failure handling

Tue, 14 Nov 2017 18:55:36 +0200

author
andreykproductengine <andreykproductengine@lindenlab.com>
date
Tue, 14 Nov 2017 18:55:36 +0200
changeset 53495
8d8e32d54d15
parent 53490
6d724c7a4043
child 53496
47704c90fb0d

MAINT-7228 Vertex buffer allocation failure handling

indra/newview/lldrawpoolavatar.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/lldrawpoolavatar.cpp	Tue Nov 07 19:16:21 2017 +0200
     1.2 +++ b/indra/newview/lldrawpoolavatar.cpp	Tue Nov 14 18:55:36 2017 +0200
     1.3 @@ -1613,6 +1613,14 @@
     1.4  		}
     1.5  	}
     1.6  
     1.7 +	if (buffer.isNull() ||
     1.8 +		buffer->getNumVerts() != vol_face.mNumVertices ||
     1.9 +		buffer->getNumIndices() != vol_face.mNumIndices)
    1.10 +	{
    1.11 +		// Allocation failed
    1.12 +		return;
    1.13 +	}
    1.14 +
    1.15  	if (sShaderLevel <= 0 && face->mLastSkinTime < avatar->getLastSkinTime())
    1.16  	{
    1.17  		//perform software vertex skinning for this face

mercurial