projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e588df
)
softpipe: cast away const to silence warning
author
Brian Paul
<brianp@vmware.com>
Mon, 30 Apr 2012 20:37:12 +0000
(14:37 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 May 2012 14:14:19 +0000
(08:14 -0600)
src/gallium/drivers/softpipe/sp_state_shader.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_state_shader.c
b/src/gallium/drivers/softpipe/sp_state_shader.c
index 4056d2d44445057547b78b0abe0dc7543a3ab9b1..910d4ba11a5113725ba7734ac4b040fdf3547ba7 100644
(file)
--- 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);
}