mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Init XR present on XR::RequestSession() with empty context
This commit is contained in:
parent
121cbd0078
commit
90e87b97ba
3 changed files with 10 additions and 9 deletions
|
@ -95,10 +95,9 @@ impl XRMethods for XR {
|
|||
}
|
||||
|
||||
let session = XRSession::new(&self.global(), &displays[0]);
|
||||
// XXXManishearth we should actually xr_present() here instead of
|
||||
// in XRSession::new, and resolve a promise based on it
|
||||
promise.resolve_native(&session);
|
||||
// whether or not we should initiate presentation is unclear
|
||||
// https://github.com/immersive-web/webxr/issues/453
|
||||
|
||||
promise
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue