diff options
author | Vinson Lee <vlee@vmware.com> | 2009-12-23 16:22:03 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2009-12-23 16:22:03 -0800 |
commit | 520955a0cd16d29ddae194ff7efc262b0d5a4fc4 (patch) | |
tree | b3ac54179b88f701c9cb1b7a5d1768cfe6bd8c5f /src/gallium/auxiliary | |
parent | 6138145b350d9e58725b43162680b43904497ec8 (diff) |
gallium/util: Initialize variable in util_clear.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | 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 7c16b32cf9..7035c68aed 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); |