From 9372fddabb6c9f78c472fdc2cf44763d0b1004de Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sat, 31 Aug 2013 19:22:04 +0200 Subject: [PATCH] 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 --- neo/renderer/RenderSystem_init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/renderer/RenderSystem_init.cpp b/neo/renderer/RenderSystem_init.cpp index 13b908bc..01330c5e 100644 --- a/neo/renderer/RenderSystem_init.cpp +++ b/neo/renderer/RenderSystem_init.cpp @@ -626,7 +626,7 @@ static void R_CheckPortableExtensions() if( r_debugContext.GetInteger() >= 1 ) { - qglDebugMessageCallbackARB( DebugCallback, NULL ); + qglDebugMessageCallbackARB( (GLDEBUGPROCARB)DebugCallback, NULL ); } if( r_debugContext.GetInteger() >= 2 ) {