MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / clear_gl_errors

Function clear_gl_errors

test/browser/gl_teximage.c:39–44  ·  view source on GitHub ↗

Loop over all glGetError() results until GL reports GL_NO_ERROR */

Source from the content-addressed store, hash-verified

37
38/* Loop over all glGetError() results until GL reports GL_NO_ERROR */
39static void clear_gl_errors() {
40 GLenum err;
41 do {
42 err = glGetError();
43 } while (err != GL_NO_ERROR);
44}
45
46int main(int argc, char *argv[]) {
47 TestStatus passed = TEST_STATUS_SUCCESS;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected