Skip to content

Commit b4fc6ac

Browse files
committed
Don't request 'layers' feature in projection layer sample
1 parent 86cbed2 commit b4fc6ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layers-samples/proj-layer.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@
9797

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

0 commit comments

Comments
 (0)