mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-20 18:23:48 +00:00
vbo: set draw_id
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>
This commit is contained in:
parent
10f6e08549
commit
b9ac72b511
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user