[Mesa-dev] [PATCH 03/15] st/vdpau: Avoid constness cast warnings.

Christian König deathsimple at vodafone.de
Fri Mar 20 08:33:35 PDT 2015


Reviewed-by: Christian König <christian.koenig at amd.com>

On 20.03.2015 14:59, Jose Fonseca wrote:
> Fixes MSVC
>
>    warning C4090: '=' : different 'const' qualifiers
> ---
>   src/mesa/state_tracker/st_vdpau.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_vdpau.c b/src/mesa/state_tracker/st_vdpau.c
> index 6ccaf3e..63af119 100644
> --- a/src/mesa/state_tracker/st_vdpau.c
> +++ b/src/mesa/state_tracker/st_vdpau.c
> @@ -66,7 +66,7 @@ st_vdpau_map_surface(struct gl_context *ctx, GLenum target, GLenum access,
>      struct pipe_sampler_view templ, **sampler_view;
>      mesa_format texFormat;
>   
> -   getProcAddr = ctx->vdpGetProcAddress;
> +   getProcAddr = (void *)ctx->vdpGetProcAddress;
>      if (output) {
>         VdpOutputSurfaceGallium *f;
>         



More information about the mesa-dev mailing list