Clean up vrdisplay, set active immersive session correctly

This commit is contained in:
Manish Goregaokar 2019-07-08 14:30:51 -07:00
parent 8780edb165
commit 57c85361be
4 changed files with 18 additions and 152 deletions

View file

@ -88,10 +88,6 @@ impl XRSession {
)
}
pub fn set_layer(&self, layer: &XRLayer) {
self.base_layer.set(Some(layer))
}
pub fn with_session<F: FnOnce(&Session)>(&self, with: F) {
let session = self.session.borrow();
with(&session)