Skip to content

Commit 078a6d1

Browse files
committed
Fix gl error when using r172
Fixes #750
1 parent 703a175 commit 078a6d1

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/core/EffectComposer.js‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,14 @@ export class EffectComposer {
299299

300300
}
301301

302-
const outputDepthTexture = inputDepthTexture.clone();
302+
const outputDepthTexture = new DepthTexture();
303+
outputDepthTexture.format = inputDepthTexture.format;
304+
outputDepthTexture.type = inputDepthTexture.type;
303305
outputDepthTexture.name = "EffectComposer.OutputDepth";
304306

305-
const stableDepthTexture = inputDepthTexture.clone();
307+
const stableDepthTexture = new DepthTexture();
308+
stableDepthTexture.format = inputDepthTexture.format;
309+
stableDepthTexture.type = inputDepthTexture.type;
306310
stableDepthTexture.name = "EffectComposer.StableDepth";
307311

308312
this.inputBuffer.depthTexture = inputDepthTexture;

0 commit comments

Comments
 (0)