Trying to get a handle on WebGL context lost

simple example where I simulate context lost. Camera stops working and then when you hit play again you get Uniform buffer error.

In the docs it reports that Babylon handles this by default, is there anything else I need to do?

I’m getting a some uniform buffer and unable to create texture errors from clients (all platforms I think) which makes me think it’s caused by the context being lost. I will do some more research, but in the meantime I would like to know what the default is and should be for this playground.


You should call restoreContext to simulate a restore:

However, it still does not work. You should create an issue in the github repo about this.


1 Like