From 6830e6515c840ff98a2ee5eb61e33dd5fb4d1ee2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 12 Mar 2012 12:44:48 -0600 Subject: [PATCH] mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: José Fonseca --- src/mesa/main/errors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2