glsl: tidy up struct with a single member
There used to be more members but they now share other fields in order to keep memory use low. Also making the naming more generic will allow us to reuse the field for explicit byte offsets within blocks for ARB_enhanced_layouts. Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
2c1a215409
commit
0d4cd045c8
8 changed files with 15 additions and 19 deletions
|
|
@ -1014,7 +1014,7 @@ cross_validate_globals(struct gl_shader_program *prog,
|
|||
}
|
||||
|
||||
if (var->type->contains_atomic() &&
|
||||
var->data.atomic.offset != existing->data.atomic.offset) {
|
||||
var->data.offset != existing->data.offset) {
|
||||
linker_error(prog, "offset specifications for %s "
|
||||
"`%s' have differing values\n",
|
||||
mode_string(var), var->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue