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/vsync.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples/vsync.rs') diff --git a/examples/vsync.rs b/examples/vsync.rs index ec9ea79..4ae2598 100644 --- a/examples/vsync.rs +++ b/examples/vsync.rs @@ -23,7 +23,9 @@ fn main() { println!("Vsync example. This example may panic if your driver or your system forces \ you out of vsync. This is intended when `build_strict` is used."); - let mut window = glutin::WindowBuilder::new().with_vsync().build_strict().unwrap(); + let mut window = glutin::WindowBuilder::new().with_gl_profile(glutin::GlProfile::Compatibility) + .with_vsync() + .build_strict().unwrap(); window.set_window_resize_callback(Some(resize_callback as fn(u32, u32))); unsafe { window.make_current() }; -- cgit v1.2.3