| 33 | namespace |
| 34 | { |
| 35 | bool GetGLError(std::string & error) |
| 36 | { |
| 37 | const GLenum glErr = glGetError(); |
| 38 | if(glErr!=GL_NO_ERROR) |
| 39 | { |
| 40 | #ifdef __APPLE__ |
| 41 | // Unfortunately no gluErrorString equivalent on Mac. |
| 42 | error = "OpenGL Error"; |
| 43 | #else |
| 44 | error = (const char*)gluErrorString(glErr); |
| 45 | #endif |
| 46 | return true; |
| 47 | } |
| 48 | return false; |
| 49 | } |
| 50 | |
| 51 | void CheckStatus() |
| 52 | { |
no outgoing calls
no test coverage detected