mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Kick the raf loop in inline sessions
This commit is contained in:
parent
01f27e9c69
commit
666ee5ceff
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,8 @@ impl XRSession {
|
||||||
if self.is_immersive() {
|
if self.is_immersive() {
|
||||||
base_layer.swap_buffers();
|
base_layer.swap_buffers();
|
||||||
self.session.borrow_mut().render_animation_frame();
|
self.session.borrow_mut().render_animation_frame();
|
||||||
|
} else {
|
||||||
|
self.session.borrow_mut().start_render_loop();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the canvas element is attached to the DOM, it is now dirty,
|
// If the canvas element is attached to the DOM, it is now dirty,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue