MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / check_errors

Function check_errors

util/glreadtest.cpp:248–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246char glerrstr[STRLEN] = "No error";
247
248static void check_errors(const char *tag)
249{
250 int i, error = 0; char *s;
251 i = glGetError();
252 if(i != GL_NO_ERROR) error = 1;
253 while(i != GL_NO_ERROR)
254 {
255 s = (char *)gluErrorString(i);
256 if(s) snprintf(glerrstr, STRLEN - 1, "OpenGL ERROR in %s: %s\n", tag, s);
257 else snprintf(glerrstr, STRLEN - 1, "OpenGL ERROR #%d in %s\n", i, tag);
258 i = glGetError();
259 }
260 if(error) THROW(glerrstr);
261}
262
263
264void initBuf(int x, int y, int width, int height, PF *pf, unsigned char *buf)

Callers 3

clearFBFunction · 0.85
writeTestFunction · 0.85
readTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected