[Mesa-dev] [PATCH] mesa: fix _mesa_DebugMessageCallbackARB() to silence warnings

Jose Fonseca jfonseca at vmware.com
Mon Mar 12 11:48:51 PDT 2012


Ah, yes. Missed this with my changes. Thanks.

Joe

----- Original Message -----
> ---
>  src/mesa/main/errors.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
> index 2256100..fcf873f 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;
>  }
>  
> --
> 1.7.3.4
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 

-- 
Jose


More information about the mesa-dev mailing list