Commit a95674f4 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Remove spurious asserts from KoMixColosOpImpl

Weights can easily be negative, e.g. when the user uses Lanczos
filer, so we cannot catch overflow using that.
parent d6163423
......@@ -206,9 +206,6 @@ private:
void computeMixedColor(quint8 *dst) {
#ifdef SANITY_CHECKS
KIS_ASSERT(normalizeFactor >= 0);
KIS_ASSERT(totalAlpha >= 0);
const mix_type maxSaneNumPixels =
std::numeric_limits<mix_type>::max() / pow2(mix_type(MathsTraits::unitValue));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment