We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47cbf9d commit 2cf6a5bCopy full SHA for 2cf6a5b
src/renderers/webxr/WebXRManager.js
@@ -277,7 +277,7 @@ class WebXRManager extends EventDispatcher {
277
278
// Check that the browser implements the necessary APIs to use an
279
// XRProjectionLayer rather than an XRWebGLLayer
280
- const useLayers = XRWebGLBinding !== undefined && 'createProjectionLayer' in XRWebGLBinding.prototype;
+ const useLayers = typeof XRWebGLBinding !== 'undefined' && 'createProjectionLayer' in XRWebGLBinding.prototype;
281
282
if ( ! useLayers ) {
283
0 commit comments