loseContext

abstract fun loseContext()(source)

The loseContext() method of the WEBGL_lose_context extension is part of the WebGL API and allows you to simulate losing the context of a WebGLRenderingContext.

MDN Reference