gallium/util: Initialize variable in util_clear.

This commit is contained in:
Vinson Lee 2009-12-23 16:22:03 -08:00
parent 6138145b35
commit 520955a0cd
1 changed files with 1 additions and 1 deletions

View 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);