22 strCode =
"GL_INVALID_ENUM";
25 strCode =
"GL_INVALID_VALUE";
28 strCode =
"GL_INVALID_OPERATION";
31 strCode =
"GL_STACK_OVERFLOW";
34 strCode =
"GL_STACK_UNDERFLOW";
37 strCode =
"GL_OUT_OF_MEMORY";
40 strCode =
"GL_INVALID_FRAMEBUFFER_OPERATION";
43 strCode =
"GL_CONTEXT_LOST";
46 strCode =
"unknown error";
49 LogWarning(
"GL error <" + strCode +
"> in " + strFunction);
53 LogError(
"GL function " + strFunction +
" is null.");
#define GL_STACK_OVERFLOW
void OpenGLReportListener(char const *glFunction, GLenum code)
#define GL_INVALID_FRAMEBUFFER_OPERATION
GLsizei const GLchar *const * string
#define LogError(message)
#define GL_STACK_UNDERFLOW
#define GL_INVALID_OPERATION
#define LogWarning(message)