Skip to content

Commit

Permalink
add with_vsync to v0.29.1 example to reproduce nVidia Wayland panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Be committed Oct 11, 2022
1 parent 2f8bdfc commit 9042935
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glutin_examples/examples/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fn main() {
let el = EventLoop::new();
let wb = WindowBuilder::new().with_title("A fantastic window!");

let windowed_context = ContextBuilder::new().build_windowed(wb, &el).unwrap();
let windowed_context = ContextBuilder::new().with_vsync(true).build_windowed(wb, &el).unwrap();

let windowed_context = unsafe { windowed_context.make_current().unwrap() };

Expand Down

0 comments on commit 9042935

Please sign in to comment.