Pārlūkot izejas kodu

Yet another try

sebavan 5 gadi atpakaļ
vecāks
revīzija
45b9c6178e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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);
     }
 };