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

Francisco Jerez currojerez at riseup.net
Tue Nov 26 12:50:37 PST 2013


Cc: 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));
 }
 
 /**
-- 
1.8.3.4



More information about the mesa-stable mailing list