From 8a1a3ed36c0cd1b8fe64601f131ccf0f5dc7f10b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 9 Aug 2017 15:30:01 +0200 Subject: [PATCH] Better fix for compil problems in utils.cpp --- common/gal/opengl/utils.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/common/gal/opengl/utils.cpp b/common/gal/opengl/utils.cpp index ea6d200f36..06af84546e 100644 --- a/common/gal/opengl/utils.cpp +++ b/common/gal/opengl/utils.cpp @@ -84,15 +84,8 @@ int checkGlError( const std::string& aInfo, bool aThrow ) // debugMsgCallback is a callback function for glDebugMessageCallback. -// It must have a right type on Windows -#ifdef __WINDOWS__ -#include -#define CB_TYPE APIENTRY -#else -#define CB_TYPE -#endif - -static void CB_TYPE debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId, +// It must have the right type ( GLAPIENTRY ) +static void GLAPIENTRY debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId, GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, const void* aUserParam ) { printf( "%s", aMessage );