From 179075df17fd5c30d4a8a5984c1637ab67433248 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 14 May 2015 16:20:58 +0200 Subject: Fix final transformation Regression introduced by commit b66dc836db66e9769f5c7142104c80fda6dd386b --- flam3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flam3.c') diff --git a/flam3.c b/flam3.c index 3e82da7..7ab0b97 100644 --- a/flam3.c +++ b/flam3.c @@ -169,7 +169,7 @@ bool iterator_step (iterator * const iter, double4 * const ret, randctx * const else fn = iter->xform_distrib[ rand_u64(rc) & CHOOSE_XFORM_GRAIN_M1 ]; - if (apply_xform(&genome->xform[fn], fn, iter->p, &q, rc)>0) { + if (apply_xform(&genome->xform[fn], iter->p, &q, rc)>0) { ++iter->consec; if (iter->consec < 5) { iter->p = q; @@ -187,7 +187,7 @@ bool iterator_step (iterator * const iter, double4 * const ret, randctx * const if (genome->final_xform_enable == 1) { if (genome->xform[genome->final_xform_index].opacity==1 || rand_d01(rc)xform[genome->final_xform_index].opacity) { - apply_xform(&genome->xform[fn], genome->final_xform_index, iter->p, + apply_xform(&genome->xform[genome->final_xform_index], iter->p, &q, rc); /* Keep the opacity from the original xform */ q = (double4) { q[0], q[1], q[2], iter->p[3] }; -- cgit v1.2.3