mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Shut down old VR compositor when the layer is replaced
This commit is contained in:
parent
e20909cf43
commit
87558c3a17
1 changed files with 6 additions and 0 deletions
|
@ -732,6 +732,12 @@ impl VRDisplay {
|
||||||
.send_vr(WebVRCommand::Create(display_id))
|
.send_vr(WebVRCommand::Create(display_id))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
if let Some(ref api_sender) = api_sender {
|
||||||
|
// shut down old vr compositor
|
||||||
|
api_sender
|
||||||
|
.send_vr(WebVRCommand::Release(display_id))
|
||||||
|
.unwrap();
|
||||||
|
}
|
||||||
context_id = update.context_id;
|
context_id = update.context_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue