diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 8a8fd6fe4..46031f7f0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -35,7 +35,7 @@ byte-slice-cast = "1" cairo-rs = { git = "https://github.com/gtk-rs/gtk-rs-core", features=["use_glib"], optional = true } pango = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true } pangocairo = { git = "https://github.com/gtk-rs/gtk-rs-core", optional = true } -glutin = { version = "0.28", optional = true } +glutin = { version = "0.29", optional = true } once_cell = "1.0" image = { version = "0.24", optional = true } memmap2 = { version = "0.5", optional = true } diff --git a/examples/src/glupload.rs b/examples/src/glupload.rs index 36ff104e3..8b1b5aeaa 100644 --- a/examples/src/glupload.rs +++ b/examples/src/glupload.rs @@ -335,7 +335,7 @@ impl App { .bus() .expect("Pipeline without bus. Shouldn't happen!"); - let event_loop = glutin::event_loop::EventLoop::with_user_event(); + let event_loop = glutin::event_loop::EventLoopBuilder::with_user_event().build(); let window = glutin::window::WindowBuilder::new().with_title("GL rendering"); let windowed_context = glutin::ContextBuilder::new() .with_vsync(true)