glsl: Fix parser rule for type_specifier
authorChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 06:08:56 +0000 (22:08 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 17 Jan 2011 17:41:25 +0000 (09:41 -0800)
Do not assign a value to ast_type_specifier::precision when no precision
qualifier is present.

src/glsl/glsl_parser.ypp

index 124ee18356db785892569ddf72a090bffdd11559..903d3f099032d57f9e19f514688136002fb38775 100644 (file)
@@ -1195,6 +1195,9 @@ storage_qualifier:
 
 type_specifier:
        type_specifier_no_prec
+       {
+          $$ = $1;
+       }
        | precision_qualifier type_specifier_no_prec
        {
           $$ = $2;