Ver código fonte

acoid restore buffer in xr

Raanan Weber 5 anos atrás
pai
commit
08bd5e075d
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      src/scene.ts

+ 3 - 1
src/scene.ts

@@ -3980,7 +3980,9 @@ export class Scene extends AbstractScene implements IAnimatable {
 
         // Restore back buffer
         this.activeCamera = currentActiveCamera;
-        this._bindFrameBuffer();
+        if (this._activeCamera && this._activeCamera.cameraRigMode !== Camera.RIG_MODE_CUSTOM) {
+            this._bindFrameBuffer();
+        }
         this.onAfterRenderTargetsRenderObservable.notifyObservers(this);
 
         for (let step of this._beforeClearStage) {