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/cursor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/cursor.rs') diff --git a/examples/cursor.rs b/examples/cursor.rs index d3beb84..8b0d818 100644 --- a/examples/cursor.rs +++ b/examples/cursor.rs @@ -17,7 +17,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("A fantastic window!"); unsafe { window.make_current() }; -- cgit v1.2.3