gl-react-dom
Version:
DOM implementation of gl-react, an universal React library to write and compose WebGL shaders
15 lines (12 loc) • 411 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _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();
};
exports.default = _default;
//# sourceMappingURL=loseGL.js.map