summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index ee6dc2596d0..b13a6aa1ab6 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -226,10 +226,12 @@ link_invalidate_variable_locations(gl_shader *sh, int input_base,
if ((var->location >= base) && !var->explicit_location)
var->location = -1;
- if ((var->location == -1) && !var->explicit_location)
+ if ((var->location == -1) && !var->explicit_location) {
var->is_unmatched_generic_inout = 1;
- else
+ var->location_frac = 0;
+ } else {
var->is_unmatched_generic_inout = 0;
+ }
}
}