summaryrefslogtreecommitdiffstats
path: root/src/glsl/link_interface_blocks.cpp
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-07-27 15:24:46 -0700
committerPaul Berry <[email protected]>2013-07-30 10:10:27 -0700
commit5fe6b90c87c055fdfe24eb8b2075e6725ad59ecd (patch)
tree74107ba5aa7b92a114220546a03cc71aab9f1b81 /src/glsl/link_interface_blocks.cpp
parentb95d237fe6731055dad2ff3eaa59e4d6fc14bfff (diff)
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 <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/link_interface_blocks.cpp')
-rw-r--r--src/glsl/link_interface_blocks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/link_interface_blocks.cpp b/src/glsl/link_interface_blocks.cpp
index ffb44530f5d..928a88ee262 100644
--- a/src/glsl/link_interface_blocks.cpp
+++ b/src/glsl/link_interface_blocks.cpp
@@ -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;
}
}