vbo: set draw_id
authorMiklós Máté <mtmkls@gmail.com>
Fri, 26 Aug 2016 12:48:00 +0000 (06:48 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 26 Aug 2016 13:34:22 +0000 (07:34 -0600)
Fixes conditional jump depending on uninitialized value
in si_state_draw.c:593

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Miklós Máté <mtmkls@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_exec_array.c

index 1997039f149c4031d44b6abd28422f4657cb366d..46543f8ab004d0c3d7477772cd11a2f8be38b3c9 100644 (file)
@@ -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