summaryrefslogtreecommitdiffstats
path: root/src/glsl/linker.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-07-28 13:42:36 -0700
committerEric Anholt <[email protected]>2010-07-28 14:04:54 -0700
commita6c7606ab6e2ba8b4fc253e93a83ca2f18a874b4 (patch)
tree3e8efc89577273289875fabd7790912ab8cf1920 /src/glsl/linker.cpp
parent667173e36293d781e145f40e0d6919cb847af318 (diff)
glsl2: Unmark unwritten varyings as varying.
This fixes an assertion failure in ir_to_mesa, and the varying won't take up varying space.
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r--src/glsl/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index e7bc7000290..ec3cc01d404 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1132,6 +1132,7 @@ assign_varying_locations(gl_shader *producer, gl_shader *consumer)
* by the previous stage.
*/
var->shader_in = (var->location != -1);
+ var->mode = ir_var_auto;
}
}