diff options
author | Chad Versace <[email protected]> | 2011-01-16 22:08:56 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-01-17 09:41:25 -0800 |
commit | 33279cd2d33a3f3804e4584f9134f4cc67567a54 (patch) | |
tree | beb9ff76d6c788b6c11b2cdd407673c35f89c930 | |
parent | aaa31bf8f44e1aab0e87160661196b0a16e1d015 (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.ypp | 3 |
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; |