mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
gallium/util: Initialize variables in u_pack_color.h.
This commit is contained in:
parent
5109484bd9
commit
36e2074b63
1 changed files with 4 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue