From a8fef35dbf320448ba53af77bd8025be5022d9f4 Mon Sep 17 00:00:00 2001 From: Felix Kaaman Date: Mon, 15 Jun 2015 23:28:29 +0200 Subject: Make legacy functions crash on osx core contexts --- examples/grabbing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/grabbing.rs') 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() }; -- cgit v1.2.3