Mesa (master): st/vdpau: Avoid constness cast warnings.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Sun Mar 22 08:23:37 UTC 2015
Module: Mesa
Branch: master
Commit: 60eff442772865bc98f05fe4c18bf468fff39e20
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=60eff442772865bc98f05fe4c18bf468fff39e20
Author: Jose Fonseca <jfonseca at vmware.com>
Date: Thu Mar 19 13:14:41 2015 +0000
st/vdpau: Avoid constness cast warnings.
Fixes MSVC
warning C4090: '=' : different 'const' qualifiers
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
---
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-commit
mailing list