mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user