Skip to content

Commit 010c5e7

Browse files
committed
Update depth buffer blit checks
1 parent 7f3c887 commit 010c5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/EffectComposer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,9 @@ export class EffectComposer {
668668
if(pass.enabled) {
669669

670670
// Copy the depth buffer to the stable depth target just before the first pass that swaps buffers
671-
if(!depthBlitted && this._stableDepthTarget !== null && pass.needsSwap && inputBuffer.depthTexture !== null) {
671+
if(!depthBlitted && this._stableDepthTarget !== null && pass.needsDepthTexture) {
672672

673-
this.blitDepthBuffer(inputBuffer);
673+
this.blitDepthBuffer(this.inputBuffer);
674674
depthBlitted = true;
675675

676676
}

0 commit comments

Comments
 (0)