diff options
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r-- | glsl_parser_extras.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index 985d3829e6..62eeb9c860 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -326,7 +326,8 @@ ast_expression::print(void) const printf("( "); foreach_list_const (n, &this->expressions) { - printf(", "); + if (n != this->expressions.get_head()) + printf(", "); ast_node *ast = exec_node_data(ast_node, n, link); ast->print(); |