enable vsync on osx

This commit is contained in:
Paul Rouget 2015-10-01 09:51:37 +02:00
parent a7743052ca
commit 72422f40e8

View file

@ -88,6 +88,7 @@ impl Window {
let mut glutin_window = glutin::WindowBuilder::new()
.with_title("Servo".to_string())
.with_decorations(!opts::get().no_native_titlebar)
.with_vsync()
.with_dimensions(window_size.to_untyped().width, window_size.to_untyped().height)
.with_gl(Window::gl_version())
.with_visibility(is_foreground)