]> git.sesse.net Git - movit/commitdiff
If an output is not in the right output gamma but is in linear, that has to be good...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 20:30:38 +0000 (22:30 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Oct 2012 20:30:38 +0000 (22:30 +0200)
effect_chain.cpp

index a549087862a47e5421ebe9b1a0db499911d7729b..a6ed91d5f20a51e406fafc0e79894e0b3f5f2cb0 100644 (file)
@@ -729,7 +729,8 @@ bool EffectChain::node_needs_gamma_fix(Node *node)
        // This needs to be before everything else, since it could
        // even apply to inputs (if they are the only effect).
        if (node->outgoing_links.empty() &&
-           node->output_gamma_curve != output_format.gamma_curve) {
+           node->output_gamma_curve != output_format.gamma_curve &&
+           node->output_gamma_curve != GAMMA_LINEAR) {
                return true;
        }