glsl2: Replace insert_before/remove pairs with exec_node::replace_with.

This commit is contained in:
Kenneth Graunke
2010-07-19 21:44:03 -07:00
parent d5be2acae3
commit c7a18da690
6 changed files with 7 additions and 14 deletions

View File

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