glsl2: Add missing sig_iter.next() to the no-constant-folding-to-outvals fix.
authorEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 14:05:07 +0000 (07:05 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 14:22:16 +0000 (07:22 -0700)
src/glsl/ir_constant_folding.cpp
src/glsl/ir_tree_grafting.cpp

index 5d770938529e73367b49dde89255ed35b2f3d475..3e6934c9a7cd7b0d40401b76ca74e18c7da45949 100644 (file)
@@ -117,6 +117,7 @@ ir_constant_folding_visitor::visit_enter(ir_call *ir)
            param_rval->replace_with(new_param);
         }
       }
+      sig_iter.next();
    }
 
    return visit_continue_with_parent;
index 748dcecefc685993cc3ba331eab56529a5e257d4..9b569b8284f7cb696d715069ea6e4a2345d6c60f 100644 (file)
@@ -202,6 +202,7 @@ ir_tree_grafting_visitor::visit_enter(ir_call *ir)
         ir->replace_with(new_ir);
         return visit_stop;
       }
+      sig_iter.next();
    }
 
    return visit_continue;