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

This commit is contained in:
Magnus Norddahl 2018-04-15 14:47:53 +02:00
parent 61032cb6ae
commit 11bb626ab6
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)