glsl: Use typed foreach_in_list instead of foreach_list.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
@@ -242,8 +242,8 @@ link_set_uniform_initializers(struct gl_shader_program *prog)
|
||||
if (shader == NULL)
|
||||
continue;
|
||||
|
||||
foreach_list(node, shader->ir) {
|
||||
ir_variable *const var = ((ir_instruction *) node)->as_variable();
|
||||
foreach_in_list(ir_instruction, node, shader->ir) {
|
||||
ir_variable *const var = node->as_variable();
|
||||
|
||||
if (!var || var->data.mode != ir_var_uniform)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user