Update terrain layer material imports and dispose logic in ViewportHost
This commit is contained in:
@@ -9651,7 +9651,8 @@ export class ViewportHost {
|
||||
geometry.dispose();
|
||||
}
|
||||
|
||||
renderObjects.material.dispose();
|
||||
renderObjects.detailMaterial.dispose();
|
||||
renderObjects.distantMaterial.dispose();
|
||||
|
||||
for (const material of renderObjects.debugMaterials) {
|
||||
material.dispose();
|
||||
|
||||
Reference in New Issue
Block a user