Use a test VRDisplay that renders to a GL window

This commit is contained in:
Alan Jeffrey 2019-02-14 20:58:37 -06:00
parent de3d2f7495
commit cc2d203151
12 changed files with 95 additions and 13 deletions

View file

@ -257,10 +257,11 @@ where
// can't defer it after `create_constellation` has started.
script::init();
let mut webvr_heartbeats = Vec::new();
let webvr_services = if PREFS.is_webvr_enabled() {
let mut services = VRServiceManager::new();
services.register_defaults();
window.register_vr_services(&mut services);
window.register_vr_services(&mut services, &mut webvr_heartbeats);
Some(services)
} else {
None
@ -307,6 +308,7 @@ where
webrender,
webrender_document,
webrender_api,
webvr_heartbeats,
},
);