MCPcopy Index your code
hub / github.com/microsoft/SandDance / polyfillContext

Function polyfillContext

docs/app/js/sanddance-app.js:59022–59035  ·  view source on GitHub ↗
(gl)

Source from the content-addressed store, hash-verified

59020var _polyfillTable = require("./polyfill-table");
59021var global = arguments[3];
59022function polyfillContext(gl) {
59023 gl.luma = gl.luma || {};
59024 if (!gl.luma.polyfilled) {
59025 (0, _polyfillVertexArrayObject.polyfillVertexArrayObject)(gl);
59026 initializeExtensions(gl);
59027 installPolyfills(gl, (0, _polyfillTable.WEBGL2_CONTEXT_POLYFILLS));
59028 installOverrides(gl, {
59029 target: gl.luma,
59030 target2: gl
59031 });
59032 gl.luma.polyfilled = true;
59033 }
59034 return gl;
59035}
59036exports.default = polyfillContext;
59037var global_ = typeof global !== "undefined" ? global : window;
59038global_.polyfillContext = polyfillContext;

Callers

nothing calls this directly

Calls 3

initializeExtensionsFunction · 0.70
installPolyfillsFunction · 0.70
installOverridesFunction · 0.70

Tested by

no test coverage detected