Yet another try for correct function signature type cast
This commit is contained in:
parent
ef6910faa9
commit
2697a21a7a
|
@ -84,7 +84,7 @@ int checkGlError( const std::string& aInfo, bool aThrow )
|
||||||
|
|
||||||
|
|
||||||
static void debugMsgCallback( GLenum aSource, GLenum aType, GLuint aId,
|
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 );
|
printf( "%s", aMessage );
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ void enableGlDebug( bool aEnable )
|
||||||
if( aEnable )
|
if( aEnable )
|
||||||
{
|
{
|
||||||
glEnable( GL_DEBUG_OUTPUT );
|
glEnable( GL_DEBUG_OUTPUT );
|
||||||
glDebugMessageCallback( debugMsgCallback, (void*) nullptr );
|
glDebugMessageCallback( (GLDEBUGPROC) debugMsgCallback, nullptr );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue