medfall

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

commit 1a8a788cca7f9ff33478d5f6692b9e8ca03123a2
parent 484afc386e4b6d987f7df6ba741a5ed95aea0ae0
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 16:15:20 +0100

Const madness

Diffstat:
gl.cc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gl.cc b/gl.cc @@ -14,7 +14,7 @@ #define GREEN "\x1b[1;33m" #if !defined( __APPLE__ ) && !defined( _WIN32 ) -static const char * type_string( const GLenum type ) { +static const char * type_string( GLenum type ) { switch( type ) { case GL_DEBUG_TYPE_ERROR: return "error"; @@ -33,7 +33,7 @@ static const char * type_string( const GLenum type ) { } } -static const char * severity_string( const GLenum severity ) { +static const char * severity_string( GLenum severity ) { switch( severity ) { case GL_DEBUG_SEVERITY_LOW: return GREEN "low" RESET; @@ -47,8 +47,8 @@ static const char * severity_string( const GLenum severity ) { } static void gl_error_printer( - const GLenum source, const GLenum type, const GLuint id, - const GLenum severity, const GLsizei length, const GLchar * const message, const void * _ + GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, + const GLchar * message, const void * _ ) { // we don't want the trailing \n size_t len = strlen( message );