From 6b2b4cc8857a9163055c4e9c8007d53a9e668e75 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 26 Nov 2013 12:43:13 -0800 Subject: [PATCH] glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it. Cc: Ian Romanick Cc: "10.0" Reviewed-by: Ian Romanick --- 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 f401f03bc76..d76d94b7a39 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)); } /** -- 2.30.2