MCPcopy Create free account
hub / github.com/microsoft/SandDance / assertWebGLContext

Function assertWebGLContext

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

Source from the content-addressed store, hash-verified

59470 return Boolean(gl && gl._version === 2);
59471}
59472function assertWebGLContext(gl) {
59473 (0, _utils.assert)(isWebGL(gl), ERR_CONTEXT);
59474}
59475function assertWebGL2Context(gl) {
59476 (0, _utils.assert)(isWebGL2(gl), ERR_WEBGL2);
59477}

Callers

nothing calls this directly

Calls 1

isWebGLFunction · 0.70

Tested by

no test coverage detected