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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user