33 #include <GL/glew.h> |
33 #include <GL/glew.h> |
34 |
34 |
35 static void asc_gl_debug_callback( |
35 static void asc_gl_debug_callback( |
36 GLenum source, GLenum type, GLuint id, GLenum severity, |
36 GLenum source, GLenum type, GLuint id, GLenum severity, |
37 GLsizei length, const GLchar* message, |
37 GLsizei length, const GLchar* message, |
38 const void* userParam |
38 __attribute__((__unused__)) const void* userParam |
39 ) { |
39 ) { |
40 if (type == GL_DEBUG_TYPE_ERROR) { |
40 if (type == GL_DEBUG_TYPE_ERROR) { |
41 asc_error("OpenGL source = %d, id = %u, type = %d, severity= %d, message = %.*s", |
41 asc_error("OpenGL source = %d, id = %u, type = %d, severity= %d, message = %.*s", |
42 source, id, type, severity, length, message); |
42 source, id, type, severity, length, message); |
43 } else { |
43 } else { |