From e27400de30277c3bd8c3202d6a2d6452c11c9636 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Wed, 8 Jul 2015 14:21:22 -0300 Subject: [PATCH] The add and subtract blend modes no longer modify the destination framebuffer's alpha. --- 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 46d4d06b4..cd52f805f 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -945,7 +945,7 @@ void Graphics::setBlendMode(BlendMode mode, bool multiplyalpha) func = GL_FUNC_REVERSE_SUBTRACT; case BLEND_ADD: srcRGB = GL_ONE; - srcA = GL_SRC_ALPHA; // FIXME: This isn't correct... + srcA = GL_ZERO; dstRGB = dstA = GL_ONE; break; case BLEND_SCREEN: