fix view count
This commit is contained in:
@@ -137,7 +137,6 @@ impl<Ctx> Ui<Ctx> {
|
||||
where
|
||||
Ctx: 'static,
|
||||
{
|
||||
self.free();
|
||||
let mut painter = Painter::new(
|
||||
&self.widgets,
|
||||
&mut self.primitives,
|
||||
@@ -152,6 +151,7 @@ impl<Ctx> Ui<Ctx> {
|
||||
for id in self.updates.drain(..) {
|
||||
painter.redraw(&id.id);
|
||||
}
|
||||
self.free();
|
||||
}
|
||||
|
||||
/// free any resources that don't have references anymore
|
||||
|
||||
Reference in New Issue
Block a user