2020-12-23 21:18:54 +01:00

6 lines
243 B
JavaScript
Executable File

export default (gl) => {
// WEBGL_lose_context helps browser to GC the context. see https://jsfiddle.net/greweb/j9709k67/
const loseContextExt = gl.getExtension("WEBGL_lose_context");
if (loseContextExt) loseContextExt.loseContext();
};