Better fix for compil problems in utils.cpp
This commit is contained in:
parent
7ab6368869
commit
8a1a3ed36c
|
@ -84,15 +84,8 @@ int checkGlError( const std::string& aInfo, bool aThrow )
|
||||||
|
|
||||||
|
|
||||||
// debugMsgCallback is a callback function for glDebugMessageCallback.
|
// debugMsgCallback is a callback function for glDebugMessageCallback.
|
||||||
// It must have a right type on Windows
|
// It must have the right type ( GLAPIENTRY )
|
||||||
#ifdef __WINDOWS__
|
static void GLAPIENTRY debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId,
|
||||||
#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 )
|
GLenum aSeverity, GLsizei aLength, const GLchar* aMessage, const void* aUserParam )
|
||||||
{
|
{
|
||||||
printf( "%s", aMessage );
|
printf( "%s", aMessage );
|
||||||
|
|
Loading…
Reference in New Issue