diff options
author | Francisco Jerez <[email protected]> | 2013-11-26 12:43:13 -0800 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2013-11-26 19:34:24 -0800 |
commit | 6b2b4cc8857a9163055c4e9c8007d53a9e668e75 (patch) | |
tree | 71e55db9d38b127de7de8ae517c07e0d7ad60afe /src/glsl/glsl_parser_extras.cpp | |
parent | 4f64dabb5fc0361a86146ce095c11131f14dfc49 (diff) |
glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it.
Cc: Ian Romanick <[email protected]>
Cc: "10.0" <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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)); } /** |