mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- 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:
parent
61032cb6ae
commit
11bb626ab6
2 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,7 @@ namespace TriScreenDrawerModes
|
||||||
{
|
{
|
||||||
if (BlendT::Mode == (int)BlendModes::Opaque)
|
if (BlendT::Mode == (int)BlendModes::Opaque)
|
||||||
{
|
{
|
||||||
|
fgcolor.a = 255;
|
||||||
return fgcolor;
|
return fgcolor;
|
||||||
}
|
}
|
||||||
else if (BlendT::Mode == (int)BlendModes::Masked)
|
else if (BlendT::Mode == (int)BlendModes::Masked)
|
||||||
|
|
|
@ -250,6 +250,7 @@ namespace TriScreenDrawerModes
|
||||||
{
|
{
|
||||||
__m128i outcolor = fgcolor;
|
__m128i outcolor = fgcolor;
|
||||||
outcolor = _mm_packus_epi16(outcolor, _mm_setzero_si128());
|
outcolor = _mm_packus_epi16(outcolor, _mm_setzero_si128());
|
||||||
|
outcolor = _mm_or_si128(outcolor, _mm_set1_epi32(0xff000000));
|
||||||
return outcolor;
|
return outcolor;
|
||||||
}
|
}
|
||||||
else if (BlendT::Mode == (int)BlendModes::Masked)
|
else if (BlendT::Mode == (int)BlendModes::Masked)
|
||||||
|
|
Loading…
Reference in a new issue