diff options
author | Miklós Máté <[email protected]> | 2016-08-26 06:48:00 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-08-26 07:34:22 -0600 |
commit | b9ac72b5116d25529fc19bd849e85d5d91413f66 (patch) | |
tree | ec492d48f10742f18457650d6aa27c8eb21fa932 | |
parent | 10f6e08549660ee66395fc075cea9c7d0bba4e04 (diff) |
vbo: set draw_id
Fixes conditional jump depending on uninitialized value
in si_state_draw.c:593
Cc: <[email protected]>
Signed-off-by: Miklós Máté <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 1997039f149..46543f8ab00 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -778,6 +778,7 @@ vbo_validated_drawrangeelements(struct gl_context *ctx, GLenum mode, prim[0].basevertex = basevertex; prim[0].num_instances = numInstances; prim[0].base_instance = baseInstance; + prim[0].draw_id = 0; /* Need to give special consideration to rendering a range of * indices starting somewhere above zero. Typically the |