diff options
author | 2023-02-28 13:44:36 -0800 | |
---|---|---|
committer | 2023-02-28 13:44:36 -0800 | |
commit | e36daa6f937abd7cb2071fd8852a3c12263944ea (patch) | |
tree | b951dd883d24963cdd3de66423feb42971684c25 /examples/integration_opengl | |
parent | 51296572c0189eaef8081c46270ff48b7e03258d (diff) | |
download | iced-e36daa6f937abd7cb2071fd8852a3c12263944ea.tar.gz iced-e36daa6f937abd7cb2071fd8852a3c12263944ea.tar.bz2 iced-e36daa6f937abd7cb2071fd8852a3c12263944ea.zip |
Removed glutin MW support and reverted glutin changes back to Iced master since it's being axed as we speak.
Diffstat (limited to 'examples/integration_opengl')
-rw-r--r-- | examples/integration_opengl/src/main.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs index fdbd7369..4dd3a4a9 100644 --- a/examples/integration_opengl/src/main.rs +++ b/examples/integration_opengl/src/main.rs @@ -13,7 +13,6 @@ use iced_glow::{Backend, Renderer, Settings, Viewport}; use iced_glutin::conversion; use iced_glutin::glutin; use iced_glutin::renderer; -use iced_glutin::window; use iced_glutin::{program, Clipboard, Color, Debug, Size}; pub fn main() { @@ -31,8 +30,7 @@ pub fn main() { .unwrap(); unsafe { - let windowed_context = - windowed_context.make_current(todo!("derezzedex")).unwrap(); + let windowed_context = windowed_context.make_current().unwrap(); let gl = glow::Context::from_loader_function(|s| { windowed_context.get_proc_address(s) as *const _ @@ -109,7 +107,7 @@ pub fn main() { // Map window event to iced event if let Some(event) = iced_winit::conversion::window_event( - window::Id::MAIN, + iced_winit::window::Id::MAIN, &event, windowed_context.window().scale_factor(), modifiers, @@ -182,7 +180,7 @@ pub fn main() { ), ); - windowed_context.swap_buffers(todo!("derezzedex")).unwrap(); + windowed_context.swap_buffers().unwrap(); } _ => (), } |