commit 23c04c9900524327b838da69a89f7d5e8c0b58c0 parent d6a0953b7c73d3327adf1cf5d73e54d6a2044905 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Aug 27 10:59:48 +0100 Don't show GL notices Diffstat:
gl.cc | | | 6 | ++++++ |
diff --git a/gl.cc b/gl.cc @@ -58,6 +58,8 @@ static const char * severity_string( GLenum severity ) { case GL_DEBUG_SEVERITY_HIGH: // case GL_DEBUG_SEVERITY_HIGH_AMD: return RED "high" RESET; + case GL_DEBUG_SEVERITY_NOTIFICATION: + return "notice"; default: return "idk"; } @@ -71,6 +73,10 @@ static void gl_debug_output_callback( return; } + if( severity == GL_DEBUG_SEVERITY_NOTIFICATION || severity == GL_DEBUG_SEVERITY_NOTIFICATION_KHR ) { + return; + } + // remove trailing \n if there is one str< 1024 > buf; buf += message;