mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
ilo: Initialize need_flush in draw_vbo.
need_flush was uninitialized if hw3d->new_batch was true. Fixes "Uninitialized scalar variable" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
36e2c7cc1a
commit
e3eeb72f24
1 changed files with 1 additions and 1 deletions
|
|
@ -371,7 +371,7 @@ draw_vbo(struct ilo_3d *hw3d, const struct ilo_context *ilo,
|
|||
const struct pipe_draw_info *info,
|
||||
int *prim_generated, int *prim_emitted)
|
||||
{
|
||||
bool need_flush;
|
||||
bool need_flush = false;
|
||||
int max_len;
|
||||
|
||||
ilo_3d_own_render_ring(hw3d);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue