Fix crash when culling compute nodes in state-sorted bin
This commit is contained in:
parent
22fb9dec65
commit
9b4ce5ec0a
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue