Kaynağa Gözat

Yet another try

sebavan 6 yıl önce
ebeveyn
işleme
45b9c6178e
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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([{
         this._vrDisplay.requestPresent([{
             source: this.getRenderingCanvas(),
             source: this.getRenderingCanvas(),
-            attributes: presentationAttributes
+            attributes: presentationAttributes,
+            ...presentationAttributes
         }]).then(onResolved).catch(onRejected);
         }]).then(onResolved).catch(onRejected);
     }
     }
 };
 };