From dbaedda69333076ce33dce196075729fd11d9558 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 12 Oct 2012 22:30:38 +0200 Subject: [PATCH] If an output is not in the right output gamma but is in linear, that has to be good enough. Fixes an infinite loop. --- effect_chain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effect_chain.cpp b/effect_chain.cpp index a549087..a6ed91d 100644 --- a/effect_chain.cpp +++ b/effect_chain.cpp @@ -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; } -- 2.39.2