From: Vinson Lee Date: Thu, 24 Dec 2009 00:22:03 +0000 (-0800) Subject: gallium/util: Initialize variable in util_clear. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=520955a0cd16d29ddae194ff7efc262b0d5a4fc4;p=mesa.git gallium/util: Initialize variable in util_clear. --- diff --git a/src/gallium/auxiliary/util/u_clear.h b/src/gallium/auxiliary/util/u_clear.h index 7c16b32cf9f..7035c68aed0 100644 --- a/src/gallium/auxiliary/util/u_clear.h +++ b/src/gallium/auxiliary/util/u_clear.h @@ -45,7 +45,7 @@ util_clear(struct pipe_context *pipe, { if (buffers & PIPE_CLEAR_COLOR) { struct pipe_surface *ps = framebuffer->cbufs[0]; - unsigned color; + unsigned color = 0; util_pack_color(rgba, ps->format, &color); pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, color);