examples: Update to glutin 0.29

This commit is contained in:
Sebastian Dröge 2022-08-09 14:32:09 +03:00 committed by Sebastian Dröge
parent 7a9537c0fd
commit 9018d1e3ac
2 changed files with 2 additions and 2 deletions

View file

@ -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 }

View file

@ -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)