Skip to content

Commit

Permalink
Merge pull request #13297 from RaananW/fixClearingMultiviewLayers
Browse files Browse the repository at this point in the history
[XR] clear as default when in layers multiview

Former-commit-id: 3a4ca28e192e14516e87d7cff2fecbfae4372bbc
  • Loading branch information
sebavan authored Nov 29, 2022
2 parents c0ce2bd + 1bfa73b commit c18d014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4061,7 +4061,7 @@ export class Scene extends AbstractScene implements IAnimatable, IClipPlanesHold
// we assume the framebuffer currently bound is the right one
if (camera && camera._multiviewTexture) {
// no clearing?
} else if (camera && camera.outputRenderTarget) {
} else if (camera && camera.outputRenderTarget && !camera._renderingMultiview) {
const rtt = camera.outputRenderTarget;
if (rtt.onClearObservable.hasObservers()) {
rtt.onClearObservable.notifyObservers(this._engine);
Expand Down

0 comments on commit c18d014

Please sign in to comment.