mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
Kick the raf loop in inline sessions
This commit is contained in:
@@ -348,6 +348,8 @@ impl XRSession {
|
||||
if self.is_immersive() {
|
||||
base_layer.swap_buffers();
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user