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

@@ -275,6 +275,9 @@ namespace OpenRA.Platforms.Default
public delegate void BlendEquation(int mode);
public static BlendEquation glBlendEquation { get; private set; }
public delegate void BlendEquationSeparate(int modeRGB, int modeAlpha);
public static BlendEquationSeparate glBlendEquationSeparate { get; private set; }
public delegate void BlendFunc(int sfactor, int dfactor);
public static BlendFunc glBlendFunc { get; private set; }
@@ -422,6 +425,7 @@ namespace OpenRA.Platforms.Default
glEnable = Bind<Enable>("glEnable");
glDisable = Bind<Disable>("glDisable");
glBlendEquation = Bind<BlendEquation>("glBlendEquation");
glBlendEquationSeparate = Bind<BlendEquationSeparate>("glBlendEquationSeparate");
glBlendFunc = Bind<BlendFunc>("glBlendFunc");
glDepthFunc = Bind<DepthFunc>("glDepthFunc");
glScissor = Bind<Scissor>("glScissor");