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

Function installProgramSpy

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

Source from the content-addressed store, hash-verified

60198 });
60199}
60200function installProgramSpy(gl) {
60201 var originalUseProgram = gl.useProgram.bind(gl);
60202 gl.useProgram = function useProgramLuma(handle) {
60203 if (gl.state.program !== handle) {
60204 originalUseProgram(handle);
60205 gl.state.program = handle;
60206 }
60207 };
60208}
60209var GLState = function() {
60210 function GLState1(gl) {
60211 var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref$copyState = _ref.copyState, copyState = _ref$copyState === void 0 ? false : _ref$copyState, _ref$log = _ref.log, log = _ref$log === void 0 ? function() {} : _ref$log;

Callers 1

trackContextStateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected