Fill in XR frame/pose/view implementations

This commit is contained in:
Manish Goregaokar 2018-12-21 15:20:51 -08:00
parent 7e043a33f1
commit 28dff81dbf
12 changed files with 152 additions and 38 deletions

View file

@ -119,7 +119,7 @@ impl XR {
self.sync_display(&display);
}
},
Err(e) => return Err(()),
Err(_) => return Err(()),
}
} else {
// WebVR spec: The Promise MUST be rejected if WebVR is not enabled/supported.
@ -127,7 +127,8 @@ impl XR {
}
// convert from Dom to DomRoot
Ok(self.displays
Ok(self
.displays
.borrow()
.iter()
.map(|d| DomRoot::from_ref(&**d))