Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGlutin update #7096
Glutin update #7096
Conversation
78356d8
to
fbcf7fa
| @@ -98,7 +98,10 @@ impl Window { | |||
| .with_parent(parent) | |||
| .build() | |||
| .unwrap(); | |||
| unsafe { glutin_window.make_current() }; | |||
| match unsafe { glutin_window.make_current() } { | |||
This comment has been minimized.
This comment has been minimized.
glennw
Aug 14, 2015
Member
This could be ...make_current().expect("Failed to make context current!");
This comment has been minimized.
This comment has been minimized.
paulrouget
Aug 17, 2015
Author
Contributor
I can't use expect:
/Users/paul/github/servo/ports/glutin/window.rs:102:47: 102:88 error: use of unstable library feature 'result_expect': newly introduced (see issue #27277)
/Users/paul/github/servo/ports/glutin/window.rs:102 unsafe { glutin_window.make_current().expect("Failed to make context current!") }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/paul/github/servo/ports/glutin/window.rs:102:47: 102:88 help: add #![feature(result_expect)] to the crate attributes to enable
This comment has been minimized.
This comment has been minimized.
| @@ -519,7 +522,7 @@ impl WindowMethods for Window { | |||
| } | |||
|
|
|||
| fn present(&self) { | |||
| self.window.swap_buffers() | |||
| self.window.swap_buffers().is_ok(); | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
nox
Aug 18, 2015
Member
13:50 <Ms2ger> I prefer .unwrap()
13:50 <nox> Ms2ger: Yeah me too but I wasn't sure if that call is supposed to fail silently or not.
755d3a2
to
84b66f5
|
Addressed Nox' comments. |
|
@bors-servo r=glennw r+ Thanks for your contribution. Reviewed 2 of 2 files at r2. Comments from the review on Reviewable.io |
|
|
|
|
Glutin update <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7096) <!-- Reviewable:end -->
|
|
|
This still requires an update of Cargo.toml, and it depends on servo/glutin#44 |
|
The glutin servo branch has been updated. I ran |
|
@paulrouget You must use ./mach update-cargo, AFAIK. |
|
@paulrouget Yep, if you run ./mach update-cargo -p glutin like @nox mentioned, this will update the cargo.lock files for all ports. I have only quickly scanned the changed cargo.lock file, but it looks about right - lots of new dependencies from the upstream glutin :) |
|
Updated with |
|
@bors-servo r=glennw |
|
|
Glutin update <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7096) <!-- Reviewable:end -->
Quit when the glutin window closes Fixes a regression from #7096. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7368) <!-- Reviewable:end -->
Quit when the glutin window closes Fixes a regression from #7096. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7368) <!-- Reviewable:end -->
paulrouget commentedAug 8, 2015