function isWebGLSupported() {
    if (typeof supported === 'undefined') {
        supported = (function supported() {
            var contextOptions = {
                stencil: true,
                failIfMajorPerformanceCaveat: _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT,
            };
            try {
                if (!_pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.ADAPTER.getWebGLRenderingContext()) {
                    return false;
                }
                var canvas = _pixi_settings__WEBPACK_IMPORTED_MODULE_0__.settings.ADAPTER.createCanvas();
                var gl = (canvas.getContext('webgl', contextOptions)
                    || canvas.getContext('experimental-webgl', contextOptions));
                var success = !!(gl && gl.getContextAttributes().stencil);
                if (gl) {
                    var loseContext = gl.getExtension('WEBGL_lose_context');
                    if (loseContext) {
                        loseContext.loseContext();
                    }
                }
                gl = null;
                return success;
            }
            catch (e) {
                return false;
            }
        })();
    }
    return supported;
}
Helper for checking for WebGL support.
@memberof PIXI.utils
@function isWebGLSupported
@returns {boolean} Is WebGL supported.