Unregister every pick material from materialManager without
disposing the underlying GPU object. Used after WebGL context-loss
— see PickingSystem.clearRegistrationsForRebuild for the contract.
Calls unregister unconditionally on every non-null pick material.
materialManager.unregister drops the material from ALL registries and is
idempotent, so it is safe for camera-aware entries (all four pick materials, in
registeredMaterials) and for anything that ever lands in staticMaterials
instead. Gating on isCameraAwareMaterial here would silently skip the latter
and leak it across every context-restore cycle.
Unregister every pick material from
materialManagerwithout disposing the underlying GPU object. Used after WebGL context-loss — seePickingSystem.clearRegistrationsForRebuildfor the contract.Calls
unregisterunconditionally on every non-null pick material.materialManager.unregisterdrops the material from ALL registries and is idempotent, so it is safe for camera-aware entries (all four pick materials, inregisteredMaterials) and for anything that ever lands instaticMaterialsinstead. Gating onisCameraAwareMaterialhere would silently skip the latter and leak it across every context-restore cycle.