]> git.sesse.net Git - movit/commitdiff
Fix snafu in gamma expansion node insertion.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 Oct 2012 23:34:29 +0000 (01:34 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 10 Oct 2012 23:34:29 +0000 (01:34 +0200)
effect_chain.cpp

index 4e43eed269b96c315286249b08f7fbcf4a58d01e..cfc6d06431f46631302b22f9d7693bcf79dab15b 100644 (file)
@@ -795,7 +795,7 @@ void EffectChain::fix_internal_gamma_by_inserting_nodes(unsigned step)
                                        continue;
                                }
                                Node *conversion = add_node(new GammaExpansionEffect());
-                               conversion->effect->set_int("destination_curve", GAMMA_LINEAR);
+                               conversion->effect->set_int("source_curve", input->output_gamma_curve);
                                conversion->output_gamma_curve = GAMMA_LINEAR;
                                insert_node_between(input, conversion, node);
                        }