Skip to content

Commit

Permalink
fix unbounded requested
Browse files Browse the repository at this point in the history
  • Loading branch information
bbohlender committed Aug 9, 2024
1 parent 2609078 commit 21d76fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xr/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function buildXRSessionInit(
}

const requiredFeatures: Array<XRReferenceSpaceType> =
bounded === null ? ['local-floor'] : bounded ? ['bounded-floor'] : ['unbounded', 'local-floor']
bounded == null ? ['local-floor'] : bounded ? ['bounded-floor'] : ['unbounded', 'local-floor']

const optionalFeatures: Array<string> = []

Expand All @@ -93,6 +93,7 @@ export function buildXRSessionInit(
domOverlay: { root: domOverlayRoot },
}

//TODO: replace with call to isSupportedFeature (unbounded, ...)
if (depthSensing) {
Object.assign(init, { depthSensing: { usagePreference: ['gpu-optimized'], dataFormatPreference: [] } })
}
Expand Down

0 comments on commit 21d76fc

Please sign in to comment.