From 685b8c26b92e55d8fe8b9883d5e584e93f804288 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Sat, 29 Jun 2024 11:58:35 +0900 Subject: [PATCH] Update viewport.rs --- crates/egui/src/viewport.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/viewport.rs b/crates/egui/src/viewport.rs index 9dd71b4747b..6aeb21288b3 100644 --- a/crates/egui/src/viewport.rs +++ b/crates/egui/src/viewport.rs @@ -1145,7 +1145,7 @@ impl ViewportOutput { let Self { parent, class, - builder, + builder: _, viewport_ui_cb, mut commands, repaint_delay, @@ -1153,8 +1153,10 @@ impl ViewportOutput { self.parent = parent; self.class = class; - let _ = self.builder.patch(builder); // we ignore the returned command, because `self.builder` will be the basis of a new patch self.viewport_ui_cb = viewport_ui_cb; + + // we ignore the returned command, because `self.builder` will be the basis of a new patch + // let (mut _commands, _recreate_window) = self.builder.patch(builder); self.commands.append(&mut commands); self.repaint_delay = self.repaint_delay.min(repaint_delay); }