summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2011-01-16 22:08:56 -0800
committerChad Versace <[email protected]>2011-01-17 09:41:25 -0800
commit33279cd2d33a3f3804e4584f9134f4cc67567a54 (patch)
treebeb9ff76d6c788b6c11b2cdd407673c35f89c930
parentaaa31bf8f44e1aab0e87160661196b0a16e1d015 (diff)
glsl: Fix parser rule for type_specifier
Do not assign a value to ast_type_specifier::precision when no precision qualifier is present.
-rw-r--r--src/glsl/glsl_parser.ypp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/glsl_parser.ypp b/src/glsl/glsl_parser.ypp
index 124ee18356d..903d3f09903 100644
--- a/src/glsl/glsl_parser.ypp
+++ b/src/glsl/glsl_parser.ypp
@@ -1195,6 +1195,9 @@ storage_qualifier:
type_specifier:
type_specifier_no_prec
+ {
+ $$ = $1;
+ }
| precision_qualifier type_specifier_no_prec
{
$$ = $2;