display: fix assertion in threaded pipeline

This commit is contained in:
rdb 2018-11-22 23:13:58 +01:00
parent d093cbbb90
commit 254cea63bb

View File

@ -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