From Anish Thomas, added catch for to an empty DrawElementsUInt creation.
This commit is contained in:
@@ -1269,6 +1269,11 @@ float DelaunayConstraint::windingNumber(const osg::Vec3 &testpoint) const
|
|||||||
}
|
}
|
||||||
osg::DrawElementsUInt *DelaunayConstraint::makeDrawable()
|
osg::DrawElementsUInt *DelaunayConstraint::makeDrawable()
|
||||||
{
|
{
|
||||||
|
if (_interiorTris.empty())
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// initialize index storage vector for internal triangles.
|
// initialize index storage vector for internal triangles.
|
||||||
std::vector<GLuint> pt_indices;
|
std::vector<GLuint> pt_indices;
|
||||||
pt_indices.reserve(_interiorTris.size() * 3);
|
pt_indices.reserve(_interiorTris.size() * 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user