mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
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…
x
Reference in New Issue
Block a user