1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Fix the change that change from a Vec to HashMap braked web and pure_glow

This commit is contained in:
Konkitoman
2023-09-26 20:34:09 +03:00
parent f3686e2459
commit 1930d69ae3
2 changed files with 5 additions and 2 deletions

View File

@@ -62,7 +62,10 @@ impl EguiGlow {
self.shapes = shapes;
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`].