Fix compile when system GLDEBUGPROCARB signature is without const

.. by just casting our DebugCallback to GLDEBUGPROCARB.
It shouldn't make a difference ABI-wise, if there is a const at
a parameter or not.

Fixes #61
This commit is contained in:
Daniel Gibson 2013-08-31 19:22:04 +02:00
parent d3ddf61d9c
commit 9372fddabb

View file

@ -626,7 +626,7 @@ static void R_CheckPortableExtensions()
if( r_debugContext.GetInteger() >= 1 ) if( r_debugContext.GetInteger() >= 1 )
{ {
qglDebugMessageCallbackARB( DebugCallback, NULL ); qglDebugMessageCallbackARB( (GLDEBUGPROCARB)DebugCallback, NULL );
} }
if( r_debugContext.GetInteger() >= 2 ) if( r_debugContext.GetInteger() >= 2 )
{ {