[Mesa-dev] mesa: Fix valgrind uninitialized variable warning

Submitted by Courtney Goeltzenleuchter on Feb. 14, 2014, 4:22 p.m.

Details

Message ID 1392394975-4014-1-git-send-email-courtney@LunarG.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Courtney Goeltzenleuchter Feb. 14, 2014, 4:22 p.m.
Initialize field to eliminate valgrind warning.
Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
---
 src/mesa/main/texcompress_etc.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/src/mesa/main/texcompress_etc.c b/src/mesa/main/texcompress_etc.c
index f9234b0..97adc86 100644
--- a/src/mesa/main/texcompress_etc.c
+++ b/src/mesa/main/texcompress_etc.c
@@ -350,6 +350,7 @@  etc2_rgb8_parse_block(struct etc2_block *block,
    block->is_t_mode = false;
    block->is_h_mode = false;
    block->is_planar_mode = false;
+   block->opaque = false;
 
    if (punchthrough_alpha)
       block->opaque = src[3] & 0x2;