Skip to content

Commit

Permalink
Run webvr thread when webxr is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed May 31, 2019
1 parent 97df39f commit 366aa78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/servo/lib.rs
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ where
script::init(); script::init();


let mut webvr_heartbeats = Vec::new(); let mut webvr_heartbeats = Vec::new();
let webvr_services = if pref!(dom.webvr.enabled) { let webvr_services = if pref!(dom.webvr.enabled) || pref!(dom.webxr.enabled) {
let mut services = VRServiceManager::new(); let mut services = VRServiceManager::new();
services.register_defaults(); services.register_defaults();
embedder.register_vr_services(&mut services, &mut webvr_heartbeats); embedder.register_vr_services(&mut services, &mut webvr_heartbeats);
Expand Down

0 comments on commit 366aa78

Please sign in to comment.