MCPcopy Create free account
hub / github.com/arrayfire/forge / commonErrorCheck

Function commonErrorCheck

src/backend/opengl/err_opengl.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24
25void commonErrorCheck(const char *pMsg, const char* pFile, int pLine)
26{
27 GLenum x = glGetError();
28
29 if (x != GL_NO_ERROR) {
30 std::stringstream ss;
31 ss << "GL Error at: "<< pFile << ":"<<pLine
32 <<" Message: "<<pMsg<<" Error Code: "<< x << std::endl;
33 FG_ERROR(ss.str().c_str(), FG_ERR_GL_ERROR);
34 }
35}
36
37void glErrorCheck(const char *pMsg, const char* pFile, int pLine)
38{

Callers 2

glErrorCheckFunction · 0.85
glForceErrorCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected