Kick the raf loop in inline sessions

This commit is contained in:
Manish Goregaokar 2020-01-02 13:56:16 +05:30
parent 01f27e9c69
commit 666ee5ceff

View file

@ -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,