浏览代码

Yet another try

sebavan 5 年之前
父节点
当前提交
45b9c6178e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Engines/Extensions/engine.webVR.ts

+ 2 - 1
src/Engines/Extensions/engine.webVR.ts

@@ -213,7 +213,8 @@ Engine.prototype.enableVR = function() {
 
         this._vrDisplay.requestPresent([{
             source: this.getRenderingCanvas(),
-            attributes: presentationAttributes
+            attributes: presentationAttributes,
+            ...presentationAttributes
         }]).then(onResolved).catch(onRejected);
     }
 };