internal void Dispose()
 {
     render?.Dispose();
 }
 public void Dispose()
 {
     renderer?.Dispose();
     (api as ICoreClientAPI)?.Event.UnregisterRenderer(this, EnumRenderStage.Opaque);
 }