Mesa (master): auxiliary/util: Ensure pipe_constant_buffer:: user_buffer is initialized.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat May 12 16:25:46 UTC 2012


Module: Mesa
Branch: master
Commit: f96540847eaaf3dd0cb5e87c172dd8a15f96eaa8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f96540847eaaf3dd0cb5e87c172dd8a15f96eaa8

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat May 12 17:23:52 2012 +0100

auxiliary/util: Ensure pipe_constant_buffer::user_buffer is initialized.

---

 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 651f7c2..b0ba585 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);




More information about the mesa-commit mailing list