Add an assert saying that if an input has premultiplied alpha, it must also have...
[movit] / effect_chain.cpp
index 68a6073..a9b8927 100644 (file)
@@ -727,6 +727,10 @@ void EffectChain::find_color_spaces_for_inputs()
                        default:
                                assert(false);
                        }
+
+                       if (node->output_alpha_type == ALPHA_PREMULTIPLIED) {
+                               assert(node->output_gamma_curve == GAMMA_LINEAR);
+                       }
                }
        }
 }