Replacing `.contextLost` by `gl.isContextLost()`