projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f64dab
)
glsl: Initialize _mesa_glsl_parse_state::atomic_counter_offsets before using it.
author
Francisco Jerez
<currojerez@riseup.net>
Tue, 26 Nov 2013 20:43:13 +0000
(12:43 -0800)
committer
Francisco 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
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_parser_extras.cpp
b/src/glsl/glsl_parser_extras.cpp
index f401f03bc7681baef499f1e73a337c86b068c374..d76d94b7a39a5f6bccbbfd765b08fef676b3c695 100644
(file)
--- 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));
}
/**