llvmpipe: add cast to silence warning
authorBrian Paul <brianp@vmware.com>
Fri, 11 May 2012 22:16:11 +0000 (16:16 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 11 May 2012 22:16:11 +0000 (16:16 -0600)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 2d2391e908c5ec98e2d876245ffec6734a710c04..d16952c2ec14e9286aeb6f7eb32e2fdc66b85150 100644 (file)
@@ -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);
    }