gallium/util: Initialize variables in u_pack_color.h.

This commit is contained in:
Vinson Lee 2009-11-20 14:20:15 -08:00
parent 5109484bd9
commit 36e2074b63
1 changed files with 4 additions and 1 deletions

View File

@ -302,7 +302,10 @@ util_unpack_color_ub(enum pipe_format format, const void *src,
static INLINE void
util_pack_color(const float rgba[4], enum pipe_format format, void *dest)
{
ubyte r, g, b, a;
ubyte r = 0;
ubyte g = 0;
ubyte b = 0;
ubyte a = 0;
if (pf_size_x(format) <= 8) {
/* format uses 8-bit components or less */