// 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;
}