mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
display: fix assertion in threaded pipeline
This commit is contained in:
parent
d093cbbb90
commit
254cea63bb
@ -441,10 +441,11 @@ is_active() const {
|
|||||||
if (cdata->_active_display_regions_stale) {
|
if (cdata->_active_display_regions_stale) {
|
||||||
CDWriter cdataw(((GraphicsOutput *)this)->_cycler, cdata, false);
|
CDWriter cdataw(((GraphicsOutput *)this)->_cycler, cdata, false);
|
||||||
((GraphicsOutput *)this)->do_determine_display_regions(cdataw);
|
((GraphicsOutput *)this)->do_determine_display_regions(cdataw);
|
||||||
}
|
return !cdataw->_active_display_regions.empty();
|
||||||
|
} else {
|
||||||
return !cdata->_active_display_regions.empty();
|
return !cdata->_active_display_regions.empty();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes the current setting of the one-shot flag. When this is true, the
|
* Changes the current setting of the one-shot flag. When this is true, the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user