mirror of
https://github.com/gre/gl-react.git
synced 2026-01-25 16:43:36 +00:00
6 lines
243 B
JavaScript
Executable File
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();
|
|
};
|