Dispose of terrain brush preview resources in ViewportHost

This commit is contained in:
2026-04-18 20:27:39 +02:00
parent eef6a3c887
commit 6383af29cb

View File

@@ -1204,6 +1204,10 @@ export class ViewportHost {
this.boxCreatePreviewMesh.material.dispose();
this.boxCreatePreviewEdges.geometry.dispose();
this.boxCreatePreviewEdges.material.dispose();
this.terrainBrushPreviewLine.geometry.dispose();
this.terrainBrushPreviewLine.material.dispose();
this.terrainBrushPreviewCenter.geometry.dispose();
this.terrainBrushPreviewCenter.material.dispose();
this.renderer.forceContextLoss();
this.renderer.dispose();