33 #include <cx/array_list.h> |
33 #include <cx/array_list.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 __attribute__((__unused__)) const void *userParam |
38 #ifdef __GNUC__ |
|
39 __attribute__((__unused__)) |
|
40 #endif |
|
41 const void *userParam |
39 ) { |
42 ) { |
40 if (type == GL_DEBUG_TYPE_ERROR) { |
43 if (type == GL_DEBUG_TYPE_ERROR) { |
41 asc_error("OpenGL source = %d, id = %u, type = %d, severity= %d, message = %.*s", |
44 asc_error("OpenGL source = %d, id = %u, type = %d, severity= %d, message = %.*s", |
42 source, id, type, severity, length, message); |
45 source, id, type, severity, length, message); |
43 } else { |
46 } else { |