mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
make gl context current on browser initialization
This commit is contained in:
parent
ababebcced
commit
56d645281f
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.
|
// Global configuration options, parsed from the command line.
|
||||||
let opts = opts::get();
|
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
|
// Get both endpoints of a special channel for communication between
|
||||||
// the client window and the compositor. This channel is unique because
|
// the client window and the compositor. This channel is unique because
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue