commit | a6c7606ab6e2ba8b4fc253e93a83ca2f18a874b4 | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed Jul 28 13:42:36 2010 -0700 |
committer | Eric Anholt <eric@anholt.net> | Wed Jul 28 14:04:54 2010 -0700 |
tree | 3e8efc89577273289875fabd7790912ab8cf1920 | |
parent | 667173e36293d781e145f40e0d6919cb847af318 [diff] [blame] |
glsl2: Unmark unwritten varyings as varying. This fixes an assertion failure in ir_to_mesa, and the varying won't take up varying space.
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index e7bc700..ec3cc01 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp
@@ -1132,6 +1132,7 @@ * by the previous stage. */ var->shader_in = (var->location != -1); + var->mode = ir_var_auto; } }