Only allow multiply blending when the 'premultiplied' blend alpha mode is used, since the formula only works with that anyway.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-04-02 18:28:16 -03:00
parent 1eed86426b
commit 8cad9c8bf0
+1 -1
View File
@@ -1116,7 +1116,7 @@ void Graphics::setBlendMode(BlendMode mode, BlendAlpha alphamode)
{
case BLEND_LIGHTEN:
case BLEND_DARKEN:
/*case BLEND_MULTIPLY:*/ // FIXME: Uncomment for 0.11.0
case BLEND_MULTIPLY:
getConstant(mode, modestr);
throw love::Exception("The '%s' blend mode must be used with premultiplied alpha.", modestr);
break;