glsl: enable offset layout qualifier for ARB_enhanced_layouts
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
1824ff1c2a
commit
6f45484ac7
|
@ -1498,7 +1498,8 @@ layout_qualifier_id:
|
|||
$$.binding = $3;
|
||||
}
|
||||
|
||||
if (state->has_atomic_counters() &&
|
||||
if ((state->has_atomic_counters() ||
|
||||
state->has_enhanced_layouts()) &&
|
||||
match_layout_qualifier("offset", $1, state) == 0) {
|
||||
$$.flags.q.explicit_offset = 1;
|
||||
$$.offset = $3;
|
||||
|
|
Loading…
Reference in New Issue