Fix compil problems in utils.cpp, to be compatible with msys2/windows and linux.
This commit is contained in:
parent
6701095855
commit
7ab6368869
|
@ -83,8 +83,17 @@ int checkGlError( const std::string& aInfo, bool aThrow )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId,
|
// debugMsgCallback is a callback function for glDebugMessageCallback.
|
||||||
GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, void* aUserParam )
|
// It must have a right type on Windows
|
||||||
|
#ifdef __WINDOWS__
|
||||||
|
#include <windef.h>
|
||||||
|
#define CB_TYPE APIENTRY
|
||||||
|
#else
|
||||||
|
#define CB_TYPE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void CB_TYPE debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId,
|
||||||
|
GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, const void* aUserParam )
|
||||||
{
|
{
|
||||||
printf( "%s", aMessage );
|
printf( "%s", aMessage );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue