Dispose reflection render targets in clear method

This commit is contained in:
2026-04-07 06:42:05 +02:00
parent 83475a72f9
commit 1b7b0d87c5

View File

@@ -3380,6 +3380,10 @@ export class ViewportHost {
this.brushRenderObjects.clear();
this.volumeAnimatedUniforms.length = 0;
for (const binding of this.viewportWaterSurfaceBindings) {
binding.reflectionRenderTarget?.dispose();
}
this.viewportWaterSurfaceBindings.length = 0;
}
private clearEntityMarkers() {