From: Chad Versace Date: Mon, 17 Jan 2011 06:08:56 +0000 (-0800) Subject: glsl: Fix parser rule for type_specifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33279cd2d33a3f3804e4584f9134f4cc67567a54;p=mesa.git glsl: Fix parser rule for type_specifier Do not assign a value to ast_type_specifier::precision when no precision qualifier is present. --- 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;