diff options
author | marha <marha@users.sourceforge.net> | 2013-09-06 12:06:57 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-09-06 12:06:57 +0200 |
commit | 2414a1de3cc17f438219f8f2a58b530d33e99a5e (patch) | |
tree | a7d7ca359bf84115689b071d30dfae0887efc057 /mesalib/src/glsl/glsl_parser.yy | |
parent | b828531d8b6da75a258d12f97df0f4e49f75ab98 (diff) | |
download | vcxsrv-2414a1de3cc17f438219f8f2a58b530d33e99a5e.tar.gz vcxsrv-2414a1de3cc17f438219f8f2a58b530d33e99a5e.tar.bz2 vcxsrv-2414a1de3cc17f438219f8f2a58b530d33e99a5e.zip |
mesa pixman xserver xkeyboard-config
xserver commit 6f89ae3e64c4dfeea508813e546c10ba1da3ea8e
xkeyboard-config commit c2309b50e7ef7b9263278fd8ff73dda1484d72db
pixman commit 8ad63f90cd8392a40f115c56b16c54d45012070e
mesa commit 505fad04f10eee1efdfcd8986b4d484b49d39986
Diffstat (limited to 'mesalib/src/glsl/glsl_parser.yy')
-rw-r--r-- | mesalib/src/glsl/glsl_parser.yy | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mesalib/src/glsl/glsl_parser.yy b/mesalib/src/glsl/glsl_parser.yy index d8e589d49..fa6e2053a 100644 --- a/mesalib/src/glsl/glsl_parser.yy +++ b/mesalib/src/glsl/glsl_parser.yy @@ -1714,13 +1714,17 @@ struct_declaration_list: ; struct_declaration: - type_specifier struct_declarator_list ';' + fully_specified_type struct_declarator_list ';' { void *ctx = state; - ast_fully_specified_type *type = new(ctx) ast_fully_specified_type(); + ast_fully_specified_type *const type = $1; type->set_location(yylloc); - type->specifier = $1; + if (type->qualifier.flags.i != 0) + _mesa_glsl_error(&@1, state, + "only precision qualifiers may be applied to " + "structure members"); + $$ = new(ctx) ast_declarator_list(type); $$->set_location(yylloc); |