[Mesa-dev] [PATCH 2/3] softpipe: cast away const to silence warning

Brian Paul brianp at vmware.com
Mon Apr 30 14:34:05 PDT 2012


---
 src/gallium/drivers/softpipe/sp_state_shader.c |    3 ++-
 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 4056d2d..910d4ba 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);
    }
-- 
1.7.7.3



More information about the mesa-dev mailing list