aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-12-23 16:22:03 -0800
committerVinson Lee <[email protected]>2009-12-23 16:22:03 -0800
commit520955a0cd16d29ddae194ff7efc262b0d5a4fc4 (patch)
treeb3ac54179b88f701c9cb1b7a5d1768cfe6bd8c5f /src/gallium
parent6138145b350d9e58725b43162680b43904497ec8 (diff)
gallium/util: Initialize variable in util_clear.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_clear.h2
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 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);