summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-08-16 13:42:04 -0700
committerKenneth Graunke <[email protected]>2010-08-16 13:43:35 -0700
commit6be3a8b70af4ba4fa4d037d54ecf6d5f055edbc9 (patch)
treeac754fd7a351f91e741a95ddb887d8f580810488 /src/glsl/glcpp/glcpp-parse.y
parentfc63e37b971b641dfdff000ba353c4810414c20e (diff)
glcpp: Remove spurious newline generated by #version handling.
This was causing line numbering to be off by one. The newline comes from the NEWLINE token at the end of the line; there's no need to insert one.
Diffstat (limited to 'src/glsl/glcpp/glcpp-parse.y')
-rw-r--r--src/glsl/glcpp/glcpp-parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/glcpp/glcpp-parse.y b/src/glsl/glcpp/glcpp-parse.y
index 3d08ce6c75f..c91da15519e 100644
--- a/src/glsl/glcpp/glcpp-parse.y
+++ b/src/glsl/glcpp/glcpp-parse.y
@@ -309,7 +309,7 @@ control_line:
talloc_free (macro);
}
add_builtin_define (parser, "__VERSION__", $2);
- glcpp_printf(parser->output, "#version %" PRIiMAX "\n", $2);
+ glcpp_printf(parser->output, "#version %" PRIiMAX, $2);
}
| HASH NEWLINE
;