glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 26 Nov 2013 20:43:13 +0000 (12:43 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 27 Nov 2013 03:34:24 +0000 (19:34 -0800)
Cc: Ian Romanick <ian.d.romanick@intel.com>
Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/glsl_parser_extras.cpp

index f401f03bc7681baef499f1e73a337c86b068c374..d76d94b7a39a5f6bccbbfd765b08fef676b3c695 100644 (file)
@@ -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));
 }
 
 /**