- fix blend mode for the fireballs

This commit is contained in:
Magnus Norddahl 2019-05-27 20:20:20 +02:00
parent 9f8cd68211
commit c2535519e8

View file

@ -401,6 +401,10 @@ void PolyTriangleThreadData::SetRenderStyle(FRenderStyle style)
{
drawargs.SetStyle(TriBlendMode::Normal);
}
else if (style.BlendOp == STYLEOP_Add && style.SrcAlpha == STYLEALPHA_SrcCol && style.DestAlpha == STYLEALPHA_One)
{
drawargs.SetStyle(TriBlendMode::SrcColor);
}
else
{
if (style == LegacyRenderStyles[STYLE_Normal]) drawargs.SetStyle(TriBlendMode::Normal);