summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2016-10-13 14:54:30 +0300
committerMarek Olšák <[email protected]>2016-10-31 11:53:38 +0100
commite40c5dab5e36adf5312725663867f840cfe28774 (patch)
tree22f5e34ce097c46fce1f2b7f0011088a8a0ea659 /src/compiler/glsl/glcpp/glcpp-parse.y
parent6770b17b9994942b4bd39fcdb493c2b0866bceaf (diff)
glsl/glcpp: initialize all fields of glcpp_parser_t on creation
this fixes some of the regressions with "ralloc: remove memset from ralloc_size" Signed-off-by: Tapani Pälli <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/compiler/glsl/glcpp/glcpp-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/glsl/glcpp/glcpp-parse.y b/src/compiler/glsl/glcpp/glcpp-parse.y
index 4fd1448fb4d..5bf0606d40e 100644
--- a/src/compiler/glsl/glcpp/glcpp-parse.y
+++ b/src/compiler/glsl/glcpp/glcpp-parse.y
@@ -1351,6 +1351,7 @@ glcpp_parser_create(glcpp_extension_iterator extensions, void *state, gl_api api
_mesa_key_string_equal);
parser->active = NULL;
parser->lexing_directive = 0;
+ parser->lexing_version_directive = 0;
parser->space_tokens = 1;
parser->last_token_was_newline = 0;
parser->last_token_was_space = 0;
@@ -1382,6 +1383,8 @@ glcpp_parser_create(glcpp_extension_iterator extensions, void *state, gl_api api
parser->has_new_source_number = 0;
parser->new_source_number = 0;
+ parser->is_gles = false;
+
return parser;
}