From 8cad9c8bf0debda6135f7dcc7fcf4b021c029797 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sat, 2 Apr 2016 18:28:16 -0300 Subject: [PATCH] Only allow multiply blending when the 'premultiplied' blend alpha mode is used, since the formula only works with that anyway. --HG-- branch : minor --- src/modules/graphics/opengl/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 5cd988436..9a471a492 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -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;