aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-10-01 02:08:34 -0600
committerbors-servo <metajack+bors@gmail.com>2015-10-01 02:08:34 -0600
commitfd66620602474e2070dc6fd6429e64cc6145b01c (patch)
treec39665a839c219692c5d749cb3e4c591415a3ac1
parente2048d57c4c0602c5a6b82db8cb76e6c3e5467fa (diff)
parent72422f40e84916eb09d290dc032a9e46540aa239 (diff)
downloadservo-fd66620602474e2070dc6fd6429e64cc6145b01c.tar.gz
servo-fd66620602474e2070dc6fd6429e64cc6145b01c.zip
Auto merge of #7812 - paulrouget:vsyncOsx, r=glennw
enable vsync on osx fixes https://github.com/servo/servo/issues/7783 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7812) <!-- Reviewable:end -->
-rw-r--r--ports/glutin/window.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/glutin/window.rs b/ports/glutin/window.rs
index 31d335a99f6..d82c129e420 100644
--- a/ports/glutin/window.rs
+++ b/ports/glutin/window.rs
@@ -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)