Browse Source

Yet another try

sebavan 5 years ago
parent
commit
45b9c6178e
1 changed files with 2 additions and 1 deletions
  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);
     }
 };