ilo: Initialize need_flush in draw_vbo.
authorVinson Lee <vlee@freedesktop.org>
Thu, 23 May 2013 06:24:35 +0000 (23:24 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Thu, 23 May 2013 07:31:42 +0000 (15:31 +0800)
commite3eeb72f2437c95ff92e4ef29afe2e6bad250c36
treef342e73f56a485d96f43d758a1414fcdb090a15d
parent36e2c7cc1ad5723abc65fbd7588eedeaaf94a4ba
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>
src/gallium/drivers/ilo/ilo_3d.c