ir_function_inlining: Fix missing iter.next() in inlining sampler params.
authorAras Pranckevicius <aras@unity3d.com>
Fri, 6 Aug 2010 10:31:56 +0000 (12:31 +0200)
committerEric Anholt <eric@anholt.net>
Fri, 6 Aug 2010 21:17:40 +0000 (14:17 -0700)
Fixes glsl-fs-function-samplers.

src/glsl/ir_function_inlining.cpp

index 35eb2b38ea936096ce049b5917e8b3e38e2e6932..fd52d106b1b3bc536ed3febffe53bb7fa2d16c12 100644 (file)
@@ -196,6 +196,8 @@ ir_call::generate_inline(ir_instruction *next_ir)
         assert(deref);
         do_sampler_replacement(&new_instructions, sig_param, deref);
       }
+      param_iter.next();
+      sig_param_iter.next();
    }
 
    /* Now push those new instructions in. */