diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/linker.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/glsl/linker.cpp b/src/compiler/glsl/linker.cpp index 436b452f7d9..c95edf3e63d 100644 --- a/src/compiler/glsl/linker.cpp +++ b/src/compiler/glsl/linker.cpp @@ -1153,6 +1153,13 @@ cross_validate_globals(struct gl_shader_program *prog, mode_string(var), var->name); return; } + + if (prog->IsES && existing->data.precision != var->data.precision) { + linker_error(prog, "declarations for %s `%s` have " + "mismatching precision qualifiers\n", + mode_string(var), var->name); + return; + } } else variables->add_variable(var); } |