glsl2: Unmark unwritten varyings as varying.

This fixes an assertion failure in ir_to_mesa, and the varying won't
take up varying space.
This commit is contained in:
Eric Anholt
2010-07-28 13:42:36 -07:00
parent 667173e362
commit a6c7606ab6

View File

@@ -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;
}
}