mirror of
https://github.com/love2d/love.git
synced 2026-08-20 12:40:20 +02:00
The add and subtract blend modes no longer modify the destination framebuffer's alpha.
This commit is contained in:
@@ -945,7 +945,7 @@ void Graphics::setBlendMode(BlendMode mode, bool multiplyalpha)
|
|||||||
func = GL_FUNC_REVERSE_SUBTRACT;
|
func = GL_FUNC_REVERSE_SUBTRACT;
|
||||||
case BLEND_ADD:
|
case BLEND_ADD:
|
||||||
srcRGB = GL_ONE;
|
srcRGB = GL_ONE;
|
||||||
srcA = GL_SRC_ALPHA; // FIXME: This isn't correct...
|
srcA = GL_ZERO;
|
||||||
dstRGB = dstA = GL_ONE;
|
dstRGB = dstA = GL_ONE;
|
||||||
break;
|
break;
|
||||||
case BLEND_SCREEN:
|
case BLEND_SCREEN:
|
||||||
|
|||||||
Reference in New Issue
Block a user