Browse Source

Yet another try

sebavan 6 năm trước cách đây
mục cha
commit
45b9c6178e

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

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