Browse Source

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

--HG--
branch : minor
Alex Szpakowski 9 years ago
parent
commit
8cad9c8bf0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/opengl/Graphics.cpp

+ 1 - 1
src/modules/graphics/opengl/Graphics.cpp

@@ -1116,7 +1116,7 @@ void Graphics::setBlendMode(BlendMode mode, BlendAlpha alphamode)
 		{
 		{
 		case BLEND_LIGHTEN:
 		case BLEND_LIGHTEN:
 		case BLEND_DARKEN:
 		case BLEND_DARKEN:
-		/*case BLEND_MULTIPLY:*/ // FIXME: Uncomment for 0.11.0
+		case BLEND_MULTIPLY:
 			getConstant(mode, modestr);
 			getConstant(mode, modestr);
 			throw love::Exception("The '%s' blend mode must be used with premultiplied alpha.", modestr);
 			throw love::Exception("The '%s' blend mode must be used with premultiplied alpha.", modestr);
 			break;
 			break;