src/glcontext.c

changeset 105
2b7f92ff2c15
parent 95
622887f7e954
child 106
895f92cff6b8
equal deleted inserted replaced
104:2ca88ec29953 105:2b7f92ff2c15
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 {

mercurial