projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56de7e2
)
gallium/util: Initialize variables in u_pack_color.h.
author
Vinson Lee
<vlee@vmware.com>
Fri, 20 Nov 2009 22:20:15 +0000
(14:20 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Fri, 4 Dec 2009 01:55:59 +0000
(17:55 -0800)
(cherry picked from commit
36e2074b63e3e5bc489eb74cad0cd97eafcedb40
)
src/gallium/auxiliary/util/u_pack_color.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_pack_color.h
b/src/gallium/auxiliary/util/u_pack_color.h
index eda883b3b92ebb9ecd25570f2a2a7f5b80795f1f..9dacc6d83dbaad81c1adf53c8420d1570b0db6c2 100644
(file)
--- a/
src/gallium/auxiliary/util/u_pack_color.h
+++ b/
src/gallium/auxiliary/util/u_pack_color.h
@@
-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 */