diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 2160fc9c..dfbeb775 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -850,6 +850,9 @@ export class RuntimeHost { } this.materialTextureCache.clear(); + this.dynamicWorldEnvironmentTarget?.dispose(); + this.dynamicWorldEnvironmentTarget = null; + this.pmremGenerator?.dispose(); this.worldBackgroundRenderer.dispose(); this.renderer?.forceContextLoss(); this.renderer?.dispose();