diff options
author | Eric Anholt <eric@anholt.net> | 2010-07-28 13:42:36 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-07-28 14:04:54 -0700 |
commit | a6c7606ab6e2ba8b4fc253e93a83ca2f18a874b4 (patch) | |
tree | 3e8efc89577273289875fabd7790912ab8cf1920 /src | |
parent | 667173e36293d781e145f40e0d6919cb847af318 (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')
-rw-r--r-- | src/glsl/linker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index e7bc700029..ec3cc01d40 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; } } |