Too many active WebGL contexts. Oldest context will be lost

Honestly speaking, I am trying to put this code, but finally I don’t know where to place this code, :sweat_smile:

how to change current render function and what of them is the best for implementation.

Well you don’t want to change the render function. You only want to listen to mouse over event on your canvas to call the 3 lines of code (detach / attach) on the hovered canvas so that if the user clicks he/she will be on the right canvas :slight_smile:

1 Like

I handled it!)

3 Likes

I knew you would ;D