From f96540847eaaf3dd0cb5e87c172dd8a15f96eaa8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Sat, 12 May 2012 17:23:52 +0100 Subject: [PATCH] auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized. --- src/gallium/auxiliary/util/u_inlines.h | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2