mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make the current window not current while creating a new shared window in the glutin port
This commit is contained in:
parent
5f503f034a
commit
99699ea70c
1 changed files with 5 additions and 0 deletions
|
@ -133,6 +133,11 @@ impl Window {
|
|||
context.window().set_window_icon(Some(load_icon(icon_bytes)));
|
||||
}
|
||||
|
||||
if let Some(sharing) = sharing {
|
||||
debug!("Making window {:?} not current", sharing.gl_context.borrow().window().id());
|
||||
sharing.gl_context.borrow_mut().make_not_current();
|
||||
}
|
||||
|
||||
let context = unsafe {
|
||||
debug!("Making window {:?} current", context.window().id());
|
||||
context.make_current().expect("Couldn't make window current")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue