projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb56cea
)
Zero-out the entire parser state structure at initialization
author
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 23 Apr 2010 20:37:47 +0000
(13:37 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 23 Apr 2010 20:37:47 +0000
(13:37 -0700)
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
glsl_parser_extras.cpp
patch
|
blob
|
history
diff --git
a/glsl_parser_extras.cpp
b/glsl_parser_extras.cpp
index 1f74cbb39dcea1906604e5b2251317bd101c15df..c808052ee78c45eb28282997fbf5c82c8cf53aa4 100644
(file)
--- 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;