From 33279cd2d33a3f3804e4584f9134f4cc67567a54 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Sun, 16 Jan 2011 22:08:56 -0800 Subject: [PATCH] glsl: Fix parser rule for type_specifier Do not assign a value to ast_type_specifier::precision when no precision qualifier is present. --- src/glsl/glsl_parser.ypp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.30.2