mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 08:50:25 +01:00
glsl: validate linking of intrastage component qualifiers
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
0317dfcd9b
commit
589053dac7
1 changed files with 7 additions and 0 deletions
|
|
@ -988,6 +988,13 @@ cross_validate_globals(struct gl_shader_program *prog,
|
|||
return;
|
||||
}
|
||||
|
||||
if (var->data.location_frac != existing->data.location_frac) {
|
||||
linker_error(prog, "explicit components for %s "
|
||||
"`%s' have differing values\n",
|
||||
mode_string(var), var->name);
|
||||
return;
|
||||
}
|
||||
|
||||
existing->data.location = var->data.location;
|
||||
existing->data.explicit_location = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue