diff options
author | Brian Paul <[email protected]> | 2008-11-24 09:28:25 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-11-24 13:11:05 -0700 |
commit | 1240280e6a7697eabd55d1a4edc6b23cae52c498 (patch) | |
tree | a3c5304c162c6e57e983397161e6afb477aec676 /src/mesa/shader | |
parent | c67c3714e8dffb6b4d6a401da7055c6244821723 (diff) |
mesa: copy centroid/invariance/precision info in parse_init_declarator()
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index 07c40eaa324..f684f6cc1d5 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -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; |