st/vdpau: Avoid constness cast warnings.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 19 Mar 2015 13:14:41 +0000 (13:14 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Sun, 22 Mar 2015 08:23:24 +0000 (08:23 +0000)
Fixes MSVC

  warning C4090: '=' : different 'const' qualifiers

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/mesa/state_tracker/st_vdpau.c

index 6ccaf3e3f186127aa84c6502fc440bd541dabc15..63af1196af1d515ef436aeeeb634f94741d5bb4f 100644 (file)
@@ -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;