projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96863ba
)
svga: cast away const to silence warning
author
Brian Paul
<brianp@vmware.com>
Mon, 30 Apr 2012 20:36:50 +0000
(14:36 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 May 2012 14:14:19 +0000
(08:14 -0600)
src/gallium/drivers/svga/svga_pipe_constants.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_constants.c
b/src/gallium/drivers/svga/svga_pipe_constants.c
index 46dc45b9ed087737cd7ea1cb8b210d908be18ed7..cfa823b345d8d508bdeccaa46de4730b797d6e7d 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_constants.c
+++ b/
src/gallium/drivers/svga/svga_pipe_constants.c
@@
-52,7
+52,8
@@
static void svga_set_constant_buffer(struct pipe_context *pipe,
struct pipe_resource *buf = cb ? cb->buffer : NULL;
if (cb && cb->user_buffer) {
- buf = svga_user_buffer_create(pipe->screen, cb->user_buffer,
+ buf = svga_user_buffer_create(pipe->screen,
+ (void *) cb->user_buffer,
cb->buffer_size,
PIPE_BIND_CONSTANT_BUFFER);
}