]> git.sesse.net Git - movit/commit
Fix a bug where PaddingEffect could create assertion errors.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 9 Oct 2013 20:24:56 +0000 (22:24 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 9 Oct 2013 20:24:56 +0000 (22:24 +0200)
commit5c97329dd35909847e2120b0b368b2723ffe5a44
tree380b982bdcf007fafc6432c5b4f38950f966f29e
parent58e7b9a8164bdaad7b0c698b2d0d80db53d79a5c
Fix a bug where PaddingEffect could create assertion errors.

The ratinale is explained in the comment, but in short, PaddingEffect
could convert blank to premultiplied alpha without realizing that
it then needed linear light (since premultiplied alpha in our case
is defined as being in linear light). Also added a unit test.

Reported by Christophe Thommeret.
padding_effect.cpp
padding_effect_test.cpp