mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
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 -->
This commit is contained in:
commit
fd66620602
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ impl Window {
|
||||||
let mut glutin_window = glutin::WindowBuilder::new()
|
let mut glutin_window = glutin::WindowBuilder::new()
|
||||||
.with_title("Servo".to_string())
|
.with_title("Servo".to_string())
|
||||||
.with_decorations(!opts::get().no_native_titlebar)
|
.with_decorations(!opts::get().no_native_titlebar)
|
||||||
|
.with_vsync()
|
||||||
.with_dimensions(window_size.to_untyped().width, window_size.to_untyped().height)
|
.with_dimensions(window_size.to_untyped().width, window_size.to_untyped().height)
|
||||||
.with_gl(Window::gl_version())
|
.with_gl(Window::gl_version())
|
||||||
.with_visibility(is_foreground)
|
.with_visibility(is_foreground)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue