Fixes "Uninitialized scalar field" defect reported by Coverity.

Signed-off-by: Vinson Lee <v...@freedesktop.org>
---
 src/glsl/link_uniforms.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
index 35ace1e..6bda68c 100644
--- a/src/glsl/link_uniforms.cpp
+++ b/src/glsl/link_uniforms.cpp
@@ -267,7 +267,10 @@ public:
    parcel_out_uniform_storage(struct string_to_uint_map *map,
                              struct gl_uniform_storage *uniforms,
                              union gl_constant_value *values)
-      : map(map), uniforms(uniforms), values(values)
+      : ubo_block_index(0), ubo_byte_offset(0), ubo_row_major(false),
+        shader_type(MESA_SHADER_VERTEX), map(map), uniforms(uniforms),
+        next_sampler(0), values(values), targets(), shader_samplers_used(0),
+        shader_shadow_samplers(0)
    {
    }
 
-- 
1.8.2.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to