commit 8faf66cd6f8eaae9b3ad614b783ead6209251b77 parent 2abab74f6671e3122c7decd4fd72682352c9ebd3 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Nov 20 13:08:52 +0200 Only use debug output on Linux... Diffstat:
gl.cc | | | 2 | ++ |
diff --git a/gl.cc b/gl.cc @@ -102,6 +102,7 @@ GLFWwindow * gl_init() { FATAL( "gladLoadGL" ); } +#if PLATFORM_LINUX GLint context_flags; glGetIntegerv( GL_CONTEXT_FLAGS, &context_flags ); if( context_flags & GL_CONTEXT_FLAG_DEBUG_BIT ) { @@ -110,6 +111,7 @@ GLFWwindow * gl_init() { glDebugMessageCallbackARB( ( GLDEBUGPROCARB ) gl_debug_output_callback, NULL ); glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE ); } +#endif INFO( "Version %s", glGetString( GL_VERSION ) ); INFO( "Vendor %s", glGetString( GL_VENDOR ) );