aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_pipe_constants.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-04-30 14:36:50 -0600
committerBrian Paul <[email protected]>2012-05-01 08:14:19 -0600
commit6e588dff57a7a1f8c4d4f243cdf0580121fa9843 (patch)
tree6ce34f159051e336e98c30e6f6e0a585a3d5fed0 /src/gallium/drivers/svga/svga_pipe_constants.c
parent96863baa42564ce2daa5f4651f1c52f1d281d9a5 (diff)
svga: cast away const to silence warning
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_constants.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_constants.c3
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 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);
}