glsl2: Replace insert_before/remove pairs with exec_node::replace_with.
This commit is contained in:
@@ -1081,8 +1081,7 @@ ast_function_expression::hir(exec_list *instructions,
|
||||
all_parameters_are_constant = false;
|
||||
|
||||
if (result != ir) {
|
||||
ir->insert_before(result);
|
||||
ir->remove();
|
||||
ir->replace_with(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user