softpipe: cast away const to silence warning
authorBrian Paul <brianp@vmware.com>
Mon, 30 Apr 2012 20:37:12 +0000 (14:37 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 May 2012 14:14:19 +0000 (08:14 -0600)
src/gallium/drivers/softpipe/sp_state_shader.c

index 4056d2d44445057547b78b0abe0dc7543a3ab9b1..910d4ba11a5113725ba7734ac4b040fdf3547ba7 100644 (file)
@@ -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);
    }