MCPcopy Create free account
hub / github.com/blendmaster/geoid / makeDebugContext

Function makeDebugContext

webgl/webgl-debug.js:271–329  ·  view source on GitHub ↗

* Given a WebGL context returns a wrapped context that calls * gl.getError after every command and calls a function if the * result is not gl.NO_ERROR. * * @param {!WebGLRenderingContext} ctx The webgl context to * wrap. * @param {!function(err, funcName, args): void} opt_onErrorFunc *

(ctx, opt_onErrorFunc, opt_onFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 6

initFunction · 0.85
glFunctionArgToStringFunction · 0.85
errorFunction · 0.85
glEnumToStringFunction · 0.85
makeErrorWrapperFunction · 0.85
makePropertyWrapperFunction · 0.85

Tested by

no test coverage detected