[Mesa-dev] [PATCH] glsl: Initialize member variable is_ubo_var in constructor.
Ian Romanick
idr at freedesktop.org
Wed Jun 26 08:36:39 PDT 2013
On 06/25/2013 09:40 PM, Vinson Lee wrote:
> Fixes "Uninitialized scalar field" defect reported by Coverity.
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
> ---
> src/glsl/link_uniforms.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp
> index 010296b..d42b6cd 100644
> --- a/src/glsl/link_uniforms.cpp
> +++ b/src/glsl/link_uniforms.cpp
> @@ -157,7 +157,7 @@ class count_uniform_size : public program_resource_visitor {
> public:
> count_uniform_size(struct string_to_uint_map *map)
> : num_active_uniforms(0), num_values(0), num_shader_samplers(0),
> - num_shader_uniform_components(0), map(map)
> + num_shader_uniform_components(0), is_ubo_var(false), map(map)
> {
> /* empty */
> }
>
More information about the mesa-dev
mailing list