medfall

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

commit e4cb2f67a6fcf320adbea69c8f956fa481e84122
parent e0a95477849f8e742efe900b3dd7d8801da6d6a6
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Sep 14 15:51:59 +0100

Disable GL debug output on Windows

Diffstat:
gl.cc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gl.cc b/gl.cc @@ -13,7 +13,7 @@ #define YELLOW "\x1b[1;32m" #define GREEN "\x1b[1;33m" -#ifndef __APPLE__ +#if !defined( __APPLE__ ) && !defined( _WIN32 ) static const char * type_string( const GLenum type ) { switch( type ) { case GL_DEBUG_TYPE_ERROR: @@ -97,10 +97,13 @@ GLFWwindow * gl_init() { FATAL( "gladLoadGL" ); } + // TODO: look into why this doesn't work... +#if !defined( _WIN32 ) if( GLAD_GL_KHR_debug ) { glEnable( GL_DEBUG_OUTPUT ); glDebugMessageCallback( ( GLDEBUGPROC ) gl_error_printer, NULL ); } +#endif INFO( "Version %s", glGetString( GL_VERSION ) ); INFO( "Vendor %s", glGetString( GL_VENDOR ) );