mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 16:50:10 +01:00
glsl: minor simplification in assign_varying_locations()
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
a0430bb62c
commit
47b4183c92
1 changed files with 3 additions and 5 deletions
|
|
@ -2514,11 +2514,9 @@ assign_varying_locations(struct gl_context *ctx,
|
|||
*/
|
||||
foreach_in_list(ir_instruction, node, consumer->ir) {
|
||||
ir_variable *const input_var = node->as_variable();
|
||||
|
||||
if (input_var == NULL || input_var->data.mode != ir_var_shader_in)
|
||||
continue;
|
||||
|
||||
matches.record(NULL, input_var);
|
||||
if (input_var && input_var->data.mode == ir_var_shader_in) {
|
||||
matches.record(NULL, input_var);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue