summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-04-30 14:37:12 -0600
committerBrian Paul <[email protected]>2012-05-01 08:14:19 -0600
commitb5752e16e82d4375171d157cb116a81ea025ea7b (patch)
treec7490c2a98495b2800788b85a2eb67e0b4b72108
parent6e588dff57a7a1f8c4d4f243cdf0580121fa9843 (diff)
softpipe: cast away const to silence warning
-rw-r--r--src/gallium/drivers/softpipe/sp_state_shader.c3
1 files changed, 2 insertions, 1 deletions
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);
}