mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- always store 255 in alpha channel for opaque things as the alpha channel is no longer ignored by the framebuffer backend (software drawer)
This commit is contained in:
parent
11bb626ab6
commit
25784c2e57
6 changed files with 6 additions and 0 deletions
|
@ -371,6 +371,7 @@ namespace swrenderer
|
|||
|
||||
if (BlendT::Mode == (int)SpanBlendModes::Opaque)
|
||||
{
|
||||
fgcolor.a = 255;
|
||||
return fgcolor;
|
||||
}
|
||||
else if (BlendT::Mode == (int)SpanBlendModes::Masked)
|
||||
|
|
|
@ -414,6 +414,7 @@ namespace swrenderer
|
|||
{
|
||||
__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)SpanBlendModes::Masked)
|
||||
|
|
|
@ -322,6 +322,7 @@ namespace swrenderer
|
|||
|
||||
if (BlendT::Mode == (int)SpriteBlendModes::Opaque)
|
||||
{
|
||||
fgcolor.a = 255;
|
||||
return fgcolor;
|
||||
}
|
||||
else if (BlendT::Mode == (int)SpriteBlendModes::Shaded)
|
||||
|
|
|
@ -368,6 +368,7 @@ namespace swrenderer
|
|||
{
|
||||
__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)SpriteBlendModes::Shaded)
|
||||
|
|
|
@ -285,6 +285,7 @@ namespace swrenderer
|
|||
|
||||
if (BlendT::Mode == (int)WallBlendModes::Opaque)
|
||||
{
|
||||
fgcolor.a = 255;
|
||||
return fgcolor;
|
||||
}
|
||||
else if (BlendT::Mode == (int)WallBlendModes::Masked)
|
||||
|
|
|
@ -330,6 +330,7 @@ namespace swrenderer
|
|||
{
|
||||
__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)WallBlendModes::Masked)
|
||||
|
|
Loading…
Reference in a new issue