- always store 255 in alpha channel for opaque things as the alpha channel is no longer ignored by the framebuffer backend (softpoly drawer)

(cherry picked from commit 11bb626ab6)
This commit is contained in:
Magnus Norddahl 2018-04-15 14:47:53 +02:00 committed by drfrag666
parent 8f138a42e3
commit 90e131b6fd
2 changed files with 2 additions and 0 deletions

View file

@ -242,6 +242,7 @@ namespace TriScreenDrawerModes
{
if (BlendT::Mode == (int)BlendModes::Opaque)
{
fgcolor.a = 255;
return fgcolor;
}
else if (BlendT::Mode == (int)BlendModes::Masked)

View file

@ -250,6 +250,7 @@ namespace TriScreenDrawerModes
{
__m128i outcolor = fgcolor;
outcolor = _mm_packus_epi16(outcolor, _mm_setzero_si128());
outcolor = _mm_or_si128(outcolor, _mm_set1_epi32(0xff000000));
return outcolor;
}
else if (BlendT::Mode == (int)BlendModes::Masked)