e');
          if (this.MRTR !== null) {
            document.getElementById("useMultisampleTexture").disabled = false;
            document.getElementById("useFoveatedTexture").disabled = false;
          }

          return gl;
        }

        onCreateXRLayer(session) {
          // Don't need antialiasing or depth, since we're handling that in our own framebuffer.
          return new XRWebGLLayer(session, this.gl, { antialias: false, depth: false });
        }

        onXRFrame(time, frame, refSpace