Dispose reflection render targets in clear method
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user