medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 1e919eda27a36a7900ebcbec51e3a6e9adf159cd
parent 42b3c53decc9c72d7675d45a6f5ab47d5233ec1b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue Dec 27 16:57:01 +0200

Make the AMD debug callback call the normal callback

Diffstat:
gl.cc | 19+------------------
1 file changed, 1 insertion(+), 18 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -89,24 +89,7 @@ static void gl_debug_output_callback_amd( GLuint id, GLenum type, GLenum severity, GLsizei length, const GLchar * message, const void * _ ) { - if( id == 131169 || id == 131185 || id == 131218 || id == 131204 ) { - return; - } - - // we don't want the trailing \n - size_t len = strlen( message ); - if( len > 0 && message[ len - 1 ] == '\n' ) { - len--; - } - - WARN( "GL [%s - %s]: %.*s", - type_string( type ), - severity_string( severity ), - len, message ); - - if( severity == GL_DEBUG_SEVERITY_HIGH ) { - ASSERT( 0 ); - } + gl_debug_output_callback( GL_DONT_CARE, type, id, severity, length, message, _ ); } static void glfw_error_callback( int code, const char * message ) {