From: Jose Fonseca Date: Thu, 19 Mar 2015 13:14:41 +0000 (+0000) Subject: st/vdpau: Avoid constness cast warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60eff442772865bc98f05fe4c18bf468fff39e20;p=mesa.git st/vdpau: Avoid constness cast warnings. Fixes MSVC warning C4090: '=' : different 'const' qualifiers Reviewed-by: Brian Paul Reviewed-by: Christian König --- diff --git a/src/mesa/state_tracker/st_vdpau.c b/src/mesa/state_tracker/st_vdpau.c index 6ccaf3e3f18..63af1196af1 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;