From 0fa6b896c6ab719eb9418c697ea184aee2ca112e Mon Sep 17 00:00:00 2001 From: Samuel Guerra Date: Mon, 23 Oct 2023 15:23:14 -0300 Subject: [PATCH] Clenup. --- zero-ui-view/src/gl.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zero-ui-view/src/gl.rs b/zero-ui-view/src/gl.rs index f14665f06..24f476ae6 100644 --- a/zero-ui-view/src/gl.rs +++ b/zero-ui-view/src/gl.rs @@ -53,8 +53,8 @@ impl GlContextManager { let window = window.clone().build(window_target).unwrap(); let r = util::catch_supress(std::panic::AssertUnwindSafe(|| match config.mode { - RenderMode::Dedicated => self.create_headed_glutin(id, &window, window_target, config.hardware_acceleration), - RenderMode::Integrated => self.create_headed_glutin(id, &window, window_target, Some(false)), + RenderMode::Dedicated => self.create_headed_glutin(id, &window, config.hardware_acceleration), + RenderMode::Integrated => self.create_headed_glutin(id, &window, Some(false)), RenderMode::Software => self.create_headed_swgl(id, &window), })); @@ -125,10 +125,9 @@ impl GlContextManager { &mut self, id: WindowId, window: &winit::window::Window, - window_target: &EventLoopWindowTarget, hardware: Option, ) -> Result> { - let display_handle = window_target.raw_display_handle(); // !!: TODO, try from window too. + let display_handle = window.raw_display_handle(); let window_handle = window.raw_window_handle(); #[cfg(windows)]