gallium/util: Initialize variable in util_clear.
authorVinson Lee <vlee@vmware.com>
Thu, 24 Dec 2009 00:22:03 +0000 (16:22 -0800)
committerVinson Lee <vlee@vmware.com>
Thu, 24 Dec 2009 00:22:03 +0000 (16:22 -0800)
src/gallium/auxiliary/util/u_clear.h

index 7c16b32cf9f280464d680fc05c73c7000323b539..7035c68aed00e97cdd9b0923d0743614d8eb26e2 100644 (file)
@@ -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);