aboutsummaryrefslogtreecommitdiffstats
path: root/examples/vsync.rs
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-06-16 11:03:23 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-06-16 11:03:23 +0200
commiteb73c2514eefae08a5f1850ce7ee7178b903c4cf (patch)
treeae044dcd6ed5d702510f750575dc1bf48bbba7c4 /examples/vsync.rs
parente48c853b9c7a617bf8ba5f31b5fb2088c90c0ee7 (diff)
parenta8fef35dbf320448ba53af77bd8025be5022d9f4 (diff)
downloadglutin-eb73c2514eefae08a5f1850ce7ee7178b903c4cf.tar.gz
glutin-eb73c2514eefae08a5f1850ce7ee7178b903c4cf.zip
Merge pull request #485 from fkaa/cocoa-crash-and-burn
Make legacy functions crash on osx core contexts
Diffstat (limited to 'examples/vsync.rs')
-rw-r--r--examples/vsync.rs4
1 files changed, 3 insertions, 1 deletions
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() };