Explorar o código

Yet another try

sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
45b9c6178e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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);
     }
 };