diff options
author | Matt Turner <[email protected]> | 2015-11-23 14:22:48 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-11-24 10:05:33 -0800 |
commit | 5369efe311475f10b4fd6524710a3b3256856e08 (patch) | |
tree | 994b3e94d3f7a49c060943c2ad21c6f49089d7fa /src/glsl/glsl_parser_extras.cpp | |
parent | f36993b46962eab4446bc1964eb47149751aee26 (diff) |
glsl: Pass ast_type_qualifier by const reference.
Coverity noticed that we were passing this by value, and it's 152 bytes.
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/glsl_parser_extras.cpp')
-rw-r--r-- | src/glsl/glsl_parser_extras.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 84b3aca1a82..7da4aba6b3d 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_parser_extras.cpp @@ -874,7 +874,7 @@ void _mesa_ast_process_interface_block(YYLTYPE *locp, _mesa_glsl_parse_state *state, ast_interface_block *const block, - const struct ast_type_qualifier q) + const struct ast_type_qualifier &q) { if (q.flags.q.buffer) { if (!state->has_shader_storage_buffer_objects()) { |