[Mesa-dev] [PATCH 1/3] svga: cast away const to silence warning
Brian Paul
brianp at vmware.com
Mon Apr 30 14:34:04 PDT 2012
---
src/gallium/drivers/svga/svga_pipe_constants.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_pipe_constants.c b/src/gallium/drivers/svga/svga_pipe_constants.c
index 46dc45b..cfa823b 100644
--- a/src/gallium/drivers/svga/svga_pipe_constants.c
+++ b/src/gallium/drivers/svga/svga_pipe_constants.c
@@ -52,7 +52,8 @@ static void svga_set_constant_buffer(struct pipe_context *pipe,
struct pipe_resource *buf = cb ? cb->buffer : NULL;
if (cb && cb->user_buffer) {
- buf = svga_user_buffer_create(pipe->screen, cb->user_buffer,
+ buf = svga_user_buffer_create(pipe->screen,
+ (void *) cb->user_buffer,
cb->buffer_size,
PIPE_BIND_CONSTANT_BUFFER);
}
--
1.7.7.3
More information about the mesa-dev
mailing list