From: Brian Paul Date: Mon, 30 Apr 2012 20:37:12 +0000 (-0600) Subject: softpipe: cast away const to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5752e16e82d4375171d157cb116a81ea025ea7b;p=mesa.git softpipe: cast away const to silence warning --- diff --git a/src/gallium/drivers/softpipe/sp_state_shader.c b/src/gallium/drivers/softpipe/sp_state_shader.c index 4056d2d4444..910d4ba11a5 100644 --- a/src/gallium/drivers/softpipe/sp_state_shader.c +++ b/src/gallium/drivers/softpipe/sp_state_shader.c @@ -350,7 +350,8 @@ softpipe_set_constant_buffer(struct pipe_context *pipe, const void *data; if (cb && cb->user_buffer) { - constants = softpipe_user_buffer_create(pipe->screen, cb->user_buffer, + constants = softpipe_user_buffer_create(pipe->screen, + (void *) cb->user_buffer, cb->buffer_size, PIPE_BIND_CONSTANT_BUFFER); }