auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 12 May 2012 16:23:52 +0000 (17:23 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 12 May 2012 16:23:52 +0000 (17:23 +0100)
src/gallium/auxiliary/util/u_inlines.h

index 651f7c2d7270a1a0066fbbe64d536f02ac1584a6..b0ba585b9bf9bde7a8e016762871453b7eb96660 100644 (file)
@@ -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);