diff options
Diffstat (limited to 'examples/grabbing.rs')
-rw-r--r-- | examples/grabbing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/grabbing.rs b/examples/grabbing.rs index 8a46750..738a939 100644 --- a/examples/grabbing.rs +++ b/examples/grabbing.rs @@ -16,7 +16,7 @@ fn main() { println!("This example requires glutin to be compiled with the `wind #[cfg(feature = "window")] fn main() { - let window = glutin::Window::new().unwrap(); + let window = glutin::WindowBuilder::new().with_gl_profile(glutin::GlProfile::Compatibility).build().unwrap(); window.set_title("glutin - Cursor grabbing test"); unsafe { window.make_current() }; |