diff --git a/libobs-opengl/gl-subsystem.c b/libobs-opengl/gl-subsystem.c index 1575bddb8..1ea80ae70 100644 --- a/libobs-opengl/gl-subsystem.c +++ b/libobs-opengl/gl-subsystem.c @@ -23,6 +23,8 @@ #undef far #undef near +/* #define SHOW_ALL_GL_MESSAGES */ + #ifdef _DEBUG static void APIENTRY gl_debug_proc( @@ -34,6 +36,15 @@ static void APIENTRY gl_debug_proc( char *source_str, *type_str, *severity_str; +/* frames can get a bit too much spam with irrelevant/insignificant opengl + * debug messages */ +#ifndef SHOW_ALL_GL_MESSAGES + if (type > GL_DEBUG_TYPE_PORTABILITY && + severity != GL_DEBUG_SEVERITY_HIGH) { + return; + } +#endif + switch(source) { case GL_DEBUG_SOURCE_API: source_str = "API"; break;