MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / GetGLError

Function GetGLError

src/libutils/oglapphelpers/glsl.cpp:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace
34{
35bool 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
51void CheckStatus()
52{

Callers 2

CheckStatusFunction · 0.85
setUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected