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

Fix all warnings

This commit is contained in:
Konkitoman
2023-08-15 04:04:52 +03:00
parent 17cd31636f
commit 18575d5931
14 changed files with 115 additions and 163 deletions

View File

@@ -1,4 +1,5 @@
use crate::shader_version::ShaderVersion;
use egui::ViewportId;
pub use egui_winit;
use egui_winit::winit;
pub use egui_winit::EventResponse;
@@ -53,14 +54,17 @@ impl EguiGlow {
repaint_after,
textures_delta,
shapes,
} = self.egui_ctx.run(raw_input, run_ui);
..
} = self
.egui_ctx
.run(raw_input, ViewportId::MAIN, ViewportId::MAIN, run_ui);
self.egui_winit
.handle_platform_output(window, &self.egui_ctx, platform_output);
self.shapes = shapes;
self.textures_delta.append(textures_delta);
repaint_after
repaint_after.last().map(|(_, t)| *t).unwrap_or_default()
}
/// Paint the results of the last call to [`Self::run`].