Skip to content
Permalink
Browse files

Make the current window not current while creating a new shared windo…

…w in the glutin port
  • Loading branch information...
asajeffrey committed Sep 20, 2019
1 parent 5f503f0 commit 99699ea70c384ee80c6c0d3a8714e8f356175038
Showing with 5 additions and 0 deletions.
  1. +5 −0 ports/glutin/headed_window.rs
@@ -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")

0 comments on commit 99699ea

Please sign in to comment.
You can’t perform that action at this time.