aboutsummaryrefslogtreecommitdiffstats
path: root/examples/vsync.rs
diff options
context:
space:
mode:
authorFelix Kaaman <trundmatu@gmail.com>2015-06-15 23:28:29 +0200
committerFelix Kaaman <trundmatu@gmail.com>2015-06-16 09:00:02 +0200
commita8fef35dbf320448ba53af77bd8025be5022d9f4 (patch)
treeae044dcd6ed5d702510f750575dc1bf48bbba7c4 /examples/vsync.rs
parente48c853b9c7a617bf8ba5f31b5fb2088c90c0ee7 (diff)
downloadglutin-a8fef35dbf320448ba53af77bd8025be5022d9f4.tar.gz
glutin-a8fef35dbf320448ba53af77bd8025be5022d9f4.zip
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() };