From 2697a21a7a791c3bd1be54926989ee74fe15a635 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 8 Aug 2017 15:26:50 +0200 Subject: [PATCH] Yet another try for correct function signature type cast --- common/gal/opengl/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/gal/opengl/utils.cpp b/common/gal/opengl/utils.cpp index ef99ff9042..e8644c876b 100644 --- a/common/gal/opengl/utils.cpp +++ b/common/gal/opengl/utils.cpp @@ -84,7 +84,7 @@ int checkGlError( const std::string& aInfo, bool aThrow ) static void debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId, - GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, const void* aUserParam ) + GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, void* aUserParam ) { printf( "%s", aMessage ); } @@ -95,7 +95,7 @@ void enableGlDebug( bool aEnable ) if( aEnable ) { glEnable( GL_DEBUG_OUTPUT ); - glDebugMessageCallback( debugMsgCallback, (void*) nullptr ); + glDebugMessageCallback( (GLDEBUGPROC) debugMsgCallback, nullptr ); } else {