diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-02-20 20:17:39 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2015-02-24 12:36:28 +0000 |
commit | 3cb2120088643a6cf9cd28bb09da8481f60350b7 (patch) | |
tree | 28c20a731cace0a6407de9513a4078f0285f1098 | |
parent | b97e7ad355d43129883a9372ead01e85bfac7cf6 (diff) |
vbo: fix an unitialized-variable warning
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>
(cherry picked from commit 0feb0b73731cebd1513dd7f4e6cdf6de81edb802)
-rw-r--r-- | src/mesa/vbo/vbo_attrib_tmp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_attrib_tmp.h b/src/mesa/vbo/vbo_attrib_tmp.h index ec66934fc4e..0c44540fc74 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 \ |