Correctly fix BlendMode.Subtractive alpha handling.

This commit is contained in:
Paul Chote
2019-08-26 17:53:18 +01:00
committed by teinarss
parent b93c7cabb3
commit 09dd66fd5a
2 changed files with 5 additions and 1 deletions

View File

@@ -241,7 +241,7 @@ namespace OpenRA.Platforms.Default
if (mode == BlendMode.Subtractive)
{
OpenGL.CheckGLError();
OpenGL.glBlendEquation(OpenGL.GL_FUNC_REVERSE_SUBTRACT);
OpenGL.glBlendEquationSeparate(OpenGL.GL_FUNC_REVERSE_SUBTRACT, OpenGL.GL_FUNC_ADD);
}
break;