mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #16903 - paulrouget:makeCurrentOnNew, r=emilio
make gl context current on browser initialization As explained in servo/webrender#1233, it's necessary to make the current gl context current when the browser is initialized, otherwise the wrong gl context might be used if another window is created before the initialization. /cc @glennw <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16903) <!-- Reviewable:end -->
This commit is contained in:
commit
5d1e02760b
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static {
|
|||
// Global configuration options, parsed from the command line.
|
||||
let opts = opts::get();
|
||||
|
||||
// Make sure the gl context is made current.
|
||||
window.prepare_for_composite(0, 0);
|
||||
|
||||
// Get both endpoints of a special channel for communication between
|
||||
// the client window and the compositor. This channel is unique because
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue