Skip to content

Commit 710caf0

Browse files
committed
Fix blit check again
1 parent 010c5e7 commit 710caf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/EffectComposer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ 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.needsDepthTexture) {
671+
if(!depthBlitted && this._stableDepthTarget !== null && pass.needsSwap) {
672672

673673
this.blitDepthBuffer(this.inputBuffer);
674674
depthBlitted = true;

0 commit comments

Comments
 (0)