Hi, I created an angular component that uses threejs (as a service.ts). The component is in the expander so if I open it ngOnInit () and close ngOnDestroy () more than 8 times, there will be a problem with:
WARNING: Too many active WebGL contexts. Oldest context will be lost.
THREE.WebGLRenderer: Context Lost.
Does anyone have solution to destroy Threejs / WebGL contexts ?
forceContextLoss() is not automatically called in dispose() because of certain compatibility issues with existing apps. More information in this PR: https://github.com/mrdoob/three.js/pull/19022