| 23 | { |
| 24 | |
| 25 | void 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 | |
| 37 | void glErrorCheck(const char *pMsg, const char* pFile, int pLine) |
| 38 | { |
no outgoing calls
no test coverage detected