From 6e588dff57a7a1f8c4d4f243cdf0580121fa9843 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 30 Apr 2012 14:36:50 -0600 Subject: [PATCH] svga: cast away const to silence warning --- src/gallium/drivers/svga/svga_pipe_constants.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_pipe_constants.c b/src/gallium/drivers/svga/svga_pipe_constants.c index 46dc45b9ed0..cfa823b345d 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); } -- 2.30.2