Fix render_tests with indexed images

This commit is contained in:
David Capello 2019-03-09 12:46:05 -03:00
parent f53544842c
commit 2f426e3b2f

View File

@ -125,6 +125,12 @@ public:
if (m_blendMode == BlendMode::SRC) {
return src;
}
else if (m_blendMode == BlendMode::DST_OVER) {
if (dst != m_mask_color)
return dst;
else
return src;
}
else {
if (src != m_mask_color)
return src;