diff options
author | Kenneth Graunke <[email protected]> | 2010-07-19 21:44:03 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-07-21 16:37:57 -0700 |
commit | c7a18da69022d3f9b05c21ff2473e8ea390f77f1 (patch) | |
tree | 573f255e2bdf860a51dd6f9398547ffb45fef822 /src/glsl/ast_function.cpp | |
parent | d5be2acae379783c4aa31243e0a88a9e67e6ca7e (diff) |
glsl2: Replace insert_before/remove pairs with exec_node::replace_with.
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 73af882c530..2348bdf24fa 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -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); } } |