From: Ian Romanick Date: Fri, 23 Apr 2010 20:37:47 +0000 (-0700) Subject: Zero-out the entire parser state structure at initialization X-Git-Tag: mesa-7.9-rc1~1173^2~625^2~361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6aeada79662aa8a0c613158667dad66a6deb02a4;p=platform%2Fupstream%2Fmesa.git Zero-out the entire parser state structure at initialization Among other things, this ensures that all of the extension flags are initially disabled. This causes the following tests to pass: glslparsertest/glsl2/draw_buffers-02.frag --- diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index 1f74cbb..c808052 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -719,6 +719,8 @@ main(int argc, char **argv) return EXIT_FAILURE; } + memset(& state, 0, sizeof(state)); + switch (argv[1][0]) { case 'v': state.target = vertex_shader;