iris: retain next-frame staging allocation
This commit is contained in:
1 parent
45cdfed293
commit
badd758d9b
1 file changed
+8
-6
@@ -285,12 +285,14 @@ impl UiRenderState {
|
|||||||
self.apply_free();
|
self.apply_free();
|
||||||
#[cfg(debug_assertions)]
|
#[cfg(debug_assertions)]
|
||||||
debug_assert!(self.primitive_counts_agree(), "{}", self.orphan_report(rsc),);
|
debug_assert!(self.primitive_counts_agree(), "{}", self.orphan_report(rsc),);
|
||||||
let next: Vec<_> = std::mem::take(&mut self.next_frame)
|
let active = &self.active;
|
||||||
.into_iter()
|
let mut requested = false;
|
||||||
.filter(|id| self.active.contains_key(id))
|
for id in self.next_frame.drain() {
|
||||||
.collect();
|
if active.contains_key(&id) {
|
||||||
let requested = !next.is_empty();
|
rsc.widgets_mut().needs_redraw.insert(id);
|
||||||
rsc.widgets_mut().needs_redraw.extend(next);
|
requested = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
requested
|
requested
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user