mesa: copy centroid/invariance/precision info in parse_init_declarator()
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 24 Nov 2008 16:28:25 +0000 (09:28 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Jan 2009 15:53:46 +0000 (08:53 -0700)
(cherry picked from commit a2037137385671c0673d1de6eb1c36dbd3cd78f3)

src/mesa/shader/slang/slang_compile.c

index 07c40eaa324d6ec198e82b547f2ef295a67c3c04..f684f6cc1d5fd211c8d235568f447d6b481603d7 100644 (file)
@@ -1799,8 +1799,11 @@ parse_init_declarator(slang_parse_ctx * C, slang_output_ctx * O,
       RETURN0;
    }
 
-   /* copy the declarator qualifier type, parse the identifier */
+   /* copy the declarator type qualifier/etc info, parse the identifier */
    var->type.qualifier = type->qualifier;
+   var->type.centroid = type->centroid;
+   var->type.precision = type->precision;
+   var->type.variant = type->variant;
    var->a_name = a_name;
    if (var->a_name == SLANG_ATOM_NULL)
       RETURN0;