()
| 654 | }, 500); |
| 655 | } |
| 656 | function preDisposeWebgl(): void { |
| 657 | if (addons.webgl.instance.textureAtlas) { |
| 658 | addons.webgl.instance.textureAtlas.remove(); |
| 659 | } |
| 660 | } |
| 661 | if (checkbox.checked) { |
| 662 | // HACK: Manually remove addons that cannot be changes |
| 663 | addon.instance = new (addon as IDemoAddon<Exclude<AddonType, 'attach'>>).ctor(); |