Browse Source

Yet another try

sebavan 5 năm trước cách đây
mục cha
commit
45b9c6178e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);
     }
 };