Fix crash when culling compute nodes in state-sorted bin

This commit is contained in:
rdb 2016-01-10 21:04:32 +01:00
parent 22fb9dec65
commit 9b4ce5ec0a

View File

@ -33,9 +33,13 @@ CullBinStateSorted(const string &name, GraphicsStateGuardianBase *gsg,
////////////////////////////////////////////////////////////////////
INLINE CullBinStateSorted::ObjectData::
ObjectData(CullableObject *object) :
_object(object),
_format(object->_munged_data->get_format())
_object(object)
{
if (object->_munged_data == NULL) {
_format = NULL;
} else {
_format = object->_munged_data->get_format();
}
}
////////////////////////////////////////////////////////////////////