mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
Add support for OpenXR hololens backend
This commit is contained in:
parent
9b4b02275e
commit
acfe1ee0dd
9 changed files with 70 additions and 19 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue