The add and subtract blend modes no longer modify the destination framebuffer's alpha.

This commit is contained in:
Alex Szpakowski
2015-07-08 14:21:22 -03:00
parent 7e44034757
commit e27400de30
+1 -1
View File
@@ -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: