diff options
author | Chia-I Wu <[email protected]> | 2010-01-16 18:16:11 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-16 18:18:09 +0100 |
commit | dee52d5bd31c7bd70883fd7fe496445bb49aad1f (patch) | |
tree | 282d850f8e3df30397605ed72902fdfc58266286 /src/gallium/auxiliary/util | |
parent | 83387cb6c42e283440e0d1e592fbe3c93a6622c7 (diff) |
gallium: Fix uninitialized instance divisor and index.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_draw_quad.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_draw_quad.c b/src/gallium/auxiliary/util/u_draw_quad.c index 4110485fb19..e2e23c3cdd8 100644 --- a/src/gallium/auxiliary/util/u_draw_quad.c +++ b/src/gallium/auxiliary/util/u_draw_quad.c @@ -61,6 +61,7 @@ util_draw_vertex_buffer(struct pipe_context *pipe, /* tell pipe about the vertex attributes */ for (i = 0; i < num_attribs; i++) { velements[i].src_offset = i * 4 * sizeof(float); + velements[i].instance_divisor = 0; velements[i].vertex_buffer_index = 0; velements[i].src_format = PIPE_FORMAT_R32G32B32A32_FLOAT; velements[i].nr_components = 4; |