mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Gate reference space creation on requested features
This commit is contained in:
parent
8cc7c51803
commit
9a04a37c1c
3 changed files with 18 additions and 8 deletions
|
@ -185,6 +185,8 @@ impl XRMethods for XR {
|
|||
let mut optional_features = vec![];
|
||||
let cx = global.get_cx();
|
||||
|
||||
// We are supposed to include "viewer" and on immersive devices "local"
|
||||
// by default here, but this is handled directly in requestReferenceSpace()
|
||||
if let Some(ref r) = init.requiredFeatures {
|
||||
for feature in r {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue