From: José Fonseca Date: Sat, 12 May 2012 16:23:52 +0000 (+0100) Subject: auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f96540847eaaf3dd0cb5e87c172dd8a15f96eaa8;p=mesa.git auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized. --- 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);