Skip to content

Commit 4e206b3

Browse files
committed
Don't dispose renderer
Fixes pmndrs#353
1 parent 649f95b commit 4e206b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/effects/Effect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ export class Effect extends EventDispatcher {
398398

399399
if(property !== null && typeof property.dispose === "function") {
400400

401-
if(property instanceof Scene) {
401+
if(property instanceof Scene || property === this.renderer) {
402402

403403
continue;
404404

src/passes/Pass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class Pass {
359359

360360
if(property !== null && typeof property.dispose === "function") {
361361

362-
if(property instanceof Scene) {
362+
if(property instanceof Scene || property === this.renderer) {
363363

364364
continue;
365365

0 commit comments

Comments
 (0)