glsl: Reduce a bit of extra code in the merging of layout qualifiers.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
60a784d56e
commit
f4fb6bf088
|
@ -1100,13 +1100,8 @@ layout_qualifier_id_list:
|
|||
YYERROR;
|
||||
}
|
||||
|
||||
$$.flags.i = $1.flags.i | $3.flags.i;
|
||||
|
||||
if ($1.flags.q.explicit_location)
|
||||
$$.location = $1.location;
|
||||
|
||||
if ($1.flags.q.explicit_index)
|
||||
$$.index = $1.index;
|
||||
$$ = $1;
|
||||
$$.flags.i |= $3.flags.i;
|
||||
|
||||
if ($3.flags.q.explicit_location)
|
||||
$$.location = $3.location;
|
||||
|
|
Loading…
Reference in New Issue