MCPcopy
hub / github.com/bbycroft/llm-viz / checkError

Function checkError

src/llm/render/triRender.ts:175–182  ·  view source on GitHub ↗
(gl: WebGL2RenderingContext, msg: string)

Source from the content-addressed store, hash-verified

173}
174
175export function checkError(gl: WebGL2RenderingContext, msg: string) {
176 let errno = gl.getError();
177 if (errno !== gl.NO_ERROR) {
178 console.error('GLERROR:', msg, '0x' + errno.toString(16));
179 return true;
180 }
181 return false;
182}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected