glsl: enable offset layout qualifier for ARB_enhanced_layouts

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Timothy Arceri 2015-12-29 21:15:52 +11:00
parent 1824ff1c2a
commit 6f45484ac7
1 changed files with 2 additions and 1 deletions

View File

@ -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;