[Mesa-dev] [Mesa-stable] [PATCH] glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it.

Ian Romanick idr at freedesktop.org
Tue Nov 26 12:50:47 PST 2013


On 11/26/2013 12:50 PM, Francisco Jerez wrote:
> Cc: Ian Romanick <ian.d.romanick at intel.com>

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

> Cc: "10.0" <mesa-stable at lists.freedesktop.org>
> ---
>  src/glsl/glsl_parser_extras.cpp | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
> index f401f03..d76d94b 100644
> --- a/src/glsl/glsl_parser_extras.cpp
> +++ b/src/glsl/glsl_parser_extras.cpp
> @@ -191,6 +191,8 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *_ctx,
>     this->gs_input_prim_type = GL_POINTS;
>     this->gs_input_size = 0;
>     this->out_qualifier = new(this) ast_type_qualifier();
> +   memset(this->atomic_counter_offsets, 0,
> +          sizeof(this->atomic_counter_offsets));
>  }
>  
>  /**
> 



More information about the mesa-dev mailing list