diff options
-rw-r--r-- | src/glsl/linker.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index d8c42ac4624..c906d744212 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -422,6 +422,12 @@ cross_validate_globals(struct gl_shader_program *prog, mode_string(var), var->name); return false; } + if (existing->centroid != var->centroid) { + linker_error_printf(prog, "declarations for %s `%s' have " + "mismatching centroid qualifiers\n", + mode_string(var), var->name); + return false; + } } else variables.add_variable(var); } |