vbo: fix an unitialized-variable warning
authorMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 19:17:39 +0000 (20:17 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 20 Feb 2015 23:16:35 +0000 (00:16 +0100)
It looks like a bug to me.

Cc: 10.5 10.4 10.3 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_attrib_tmp.h

index ec66934fc4ebf62b64037637a0cba8b4dc940eef..0c44540fc74e2580e802119a23d0965f87e4eea2 100644 (file)
@@ -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                                                      \