projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b49d4f
)
auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.
author
José Fonseca
<jfonseca@vmware.com>
Sat, 12 May 2012 16:23:52 +0000
(17:23 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Sat, 12 May 2012 16:23:52 +0000
(17:23 +0100)
src/gallium/auxiliary/util/u_inlines.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_inlines.h
b/src/gallium/auxiliary/util/u_inlines.h
index 651f7c2d7270a1a0066fbbe64d536f02ac1584a6..b0ba585b9bf9bde7a8e016762871453b7eb96660 100644
(file)
--- a/
src/gallium/auxiliary/util/u_inlines.h
+++ b/
src/gallium/auxiliary/util/u_inlines.h
@@
-446,6
+446,7
@@
pipe_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
cb.buffer = buf;
cb.buffer_offset = 0;
cb.buffer_size = buf->width0;
+ cb.user_buffer = NULL;
pipe->set_constant_buffer(pipe, shader, index, &cb);
} else {
pipe->set_constant_buffer(pipe, shader, index, NULL);