MCPcopy Create free account
hub / github.com/GrayMind/WebGL-Programming-Guide / makeDebugContext

Function makeDebugContext

source/lib/webgl-debug.js:188–241  ·  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_onErrorF

(ctx, opt_onErrorFunc)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

initFunction · 0.85
glFunctionArgToStringFunction · 0.85
logFunction · 0.85
glEnumToStringFunction · 0.85
makeErrorWrapperFunction · 0.85

Tested by

no test coverage detected