From: Brian Paul Date: Mon, 12 Mar 2012 18:44:48 +0000 (-0600) Subject: mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6830e6515c840ff98a2ee5eb61e33dd5fb4d1ee2;p=mesa.git mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings Reviewed-by: José Fonseca --- diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 22561003a6f..fcf873f18c2 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -718,10 +718,10 @@ _mesa_DebugMessageControlARB(GLenum source, GLenum type, GLenum severity, } static void GLAPIENTRY -_mesa_DebugMessageCallbackARB(GLvoid *callback, GLvoid *userParam) +_mesa_DebugMessageCallbackARB(GLDEBUGPROCARB callback, GLvoid *userParam) { GET_CURRENT_CONTEXT(ctx); - ctx->Debug.Callback = (GLDEBUGPROCARB)callback; + ctx->Debug.Callback = callback; ctx->Debug.CallbackData = userParam; }