mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Fix the change that change from a Vec to HashMap braked web and pure_glow
This commit is contained in:
@@ -203,7 +203,7 @@ impl AppRunner {
|
|||||||
|
|
||||||
self.frame.info.cpu_usage = Some((now_sec() - frame_start) as f32);
|
self.frame.info.cpu_usage = Some((now_sec() - frame_start) as f32);
|
||||||
|
|
||||||
let (_, repaint_after) = repaint_after[0];
|
let repaint_after = repaint_after[&egui::ViewportId::MAIN];
|
||||||
(repaint_after, clipped_primitives)
|
(repaint_after, clipped_primitives)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,7 +62,10 @@ impl EguiGlow {
|
|||||||
|
|
||||||
self.shapes = shapes;
|
self.shapes = shapes;
|
||||||
self.textures_delta.append(textures_delta);
|
self.textures_delta.append(textures_delta);
|
||||||
repaint_after.last().map(|(_, t)| *t).unwrap_or_default()
|
repaint_after
|
||||||
|
.get(&egui::ViewportId::MAIN)
|
||||||
|
.cloned()
|
||||||
|
.unwrap_or_default()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Paint the results of the last call to [`Self::run`].
|
/// Paint the results of the last call to [`Self::run`].
|
||||||
|
|||||||
Reference in New Issue
Block a user