Skip to content

Commit

Permalink
Don't request 'layers' feature in projection layer sample
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Jan 15, 2025
1 parent 86cbed2 commit b4fc6ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layers-samples/proj-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@

function onRequestSession() {
if (!xrSession) {
navigator.xr.requestSession('immersive-vr', {
requiredFeatures: ['layers'],
}).then(onSessionStarted);
// Unlike all other layer types, use of a single projection layer does
// not require the 'layers' feature.
navigator.xr.requestSession('immersive-vr').then(onSessionStarted);
} else {
onEndSession();
}
Expand Down

0 comments on commit b4fc6ac

Please sign in to comment.