medfall

A super great game engine
Log | Files | Refs

commit bac4573e2bf1024a1ff2e975bd794880bef2cff3
parent 4b46415a5c5dfc342f648b99a19197ddadaad034
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon Aug 28 20:42:17 +0100

Ignore shader compilation errors in the GL debug

Diffstat:
gl.cc | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -69,7 +69,13 @@ static void gl_debug_output_callback( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar * message, const void * _ ) { - if( id == 131169 || id == 131185 || id == 131218 || id == 131204 ) { + if( + source == 33352 || // shader compliation errors + source == 131169 || + source == 131185 || + source == 131218 || + source == 131204 + ) { return; } @@ -84,7 +90,8 @@ static void gl_debug_output_callback( buf.truncate( buf.len() - 1 ); } - WARN( "GL [{} - {}]: {}", + WARN( "GL {} [{} - {}]: {}", + source, type_string( type ), severity_string( severity ), buf );