mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 14:10:09 +01:00
glsl: Improve error message for interstage interface block mismatch.
We're now emitting this error from a point where we have easy access to the name of the block that failed to match, so go ahead and include that in the error message, as we do for intrastage interface block mismatches. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
b95d237fe6
commit
5fe6b90c87
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ validate_interstage_interface_blocks(struct gl_shader_program *prog,
|
|||
continue;
|
||||
|
||||
if (var->interface_type != expected_type) {
|
||||
linker_error(prog, "interface block mismatch between shader stages\n");
|
||||
linker_error(prog, "definitions of interface block `%s' do not "
|
||||
"match\n", var->interface_type->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue