From 550de24c17fd4873b0200c0d4a61656e184631ac Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 11 May 2012 16:16:11 -0600 Subject: [PATCH] llvmpipe: add cast to silence warning --- src/gallium/drivers/llvmpipe/lp_state_fs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 2d2391e908c..d16952c2ec1 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -1174,7 +1174,8 @@ llvmpipe_set_constant_buffer(struct pipe_context *pipe, const void *data; if (cb && cb->user_buffer) { - constants = llvmpipe_user_buffer_create(pipe->screen, cb->user_buffer, + constants = llvmpipe_user_buffer_create(pipe->screen, + (void *) cb->user_buffer, cb->buffer_size, PIPE_BIND_CONSTANT_BUFFER); } -- 2.30.2