Browse Source

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

Alex Szpakowski 10 years ago
parent
commit
e27400de30
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

@@ -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: