Mesa (mesa_7_6_branch): gallium/util: Initialize variable in util_clear.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 24 00:23:44 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 520955a0cd16d29ddae194ff7efc262b0d5a4fc4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=520955a0cd16d29ddae194ff7efc262b0d5a4fc4

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Dec 23 16:22:03 2009 -0800

gallium/util: Initialize variable in util_clear.

---

 src/gallium/auxiliary/util/u_clear.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_clear.h b/src/gallium/auxiliary/util/u_clear.h
index 7c16b32..7035c68 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);




More information about the mesa-commit mailing list