Add support for OpenXR hololens backend

This commit is contained in:
Manish Goregaokar 2019-08-09 19:06:37 -07:00
parent 9b4b02275e
commit acfe1ee0dd
9 changed files with 70 additions and 19 deletions

View file

@ -156,10 +156,6 @@ impl XRMethods for XR {
comp: InCompartment,
) -> Rc<Promise> {
let promise = Promise::new_in_current_compartment(&self.global(), comp);
if mode != XRSessionMode::Immersive_vr {
promise.reject_error(Error::NotSupported);
return promise;
}
if self.pending_or_active_session() {
promise.reject_error(Error::InvalidState);