diff options
author | José Fonseca <[email protected]> | 2012-05-12 17:23:52 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-05-12 17:23:52 +0100 |
commit | f96540847eaaf3dd0cb5e87c172dd8a15f96eaa8 (patch) | |
tree | 50a2e617e8801d00f7ca51993f62031f0165c253 /src | |
parent | 7b49d4f05d8224448835c8e36724241f7d087a90 (diff) |
auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/util/u_inlines.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index 651f7c2d727..b0ba585b9bf 100644 --- 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); |