mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Avoid accessing DOM global from VRDisplay's destructor.
This commit is contained in:
parent
2e6252f256
commit
fda0572a93
6 changed files with 27 additions and 28 deletions
|
@ -364,7 +364,7 @@ impl XRSystem {
|
|||
existing.update_display(&display);
|
||||
existing
|
||||
} else {
|
||||
let root = VRDisplay::new(&self.global(), display.clone());
|
||||
let root = VRDisplay::new(&self.global().as_window(), display.clone());
|
||||
self.displays.borrow_mut().push(Dom::from_ref(&*root));
|
||||
root
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue