From 60eff442772865bc98f05fe4c18bf468fff39e20 Mon Sep 17 00:00:00 2001 From: Jose Fonseca Date: Thu, 19 Mar 2015 13:14:41 +0000 Subject: [PATCH] st/vdpau: Avoid constness cast warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes MSVC warning C4090: '=' : different 'const' qualifiers Reviewed-by: Brian Paul Reviewed-by: Christian König --- 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 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; -- 2.30.2