Mesa (master): vbo: fix an unitialized-variable warning

Marek Olšák mareko at kemper.freedesktop.org
Fri Feb 20 23:17:04 UTC 2015


Module: Mesa
Branch: master
Commit: 0feb0b73731cebd1513dd7f4e6cdf6de81edb802
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0feb0b73731cebd1513dd7f4e6cdf6de81edb802

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Feb 20 20:17:39 2015 +0100

vbo: fix an unitialized-variable warning

It looks like a bug to me.

Cc: 10.5 10.4 10.3 <mesa-stable at lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/vbo/vbo_attrib_tmp.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h
index ec66934..0c44540 100644
--- a/src/mesa/vbo/vbo_attrib_tmp.h
+++ b/src/mesa/vbo/vbo_attrib_tmp.h
@@ -210,6 +210,7 @@ static inline float conv_i2_to_norm_float(const struct gl_context *ctx, int i2)
       }								\
    } else if ((type) == GL_UNSIGNED_INT_10F_11F_11F_REV) {	\
       float res[4];						\
+      res[3] = 1;                                               \
       r11g11b10f_to_float3((arg), res);				\
       ATTR##val##FV((attr), res);				\
    } else							\




More information about the mesa-commit mailing list