Skip to content

Commit

Permalink
- always store 255 in alpha channel for opaque things as the alpha ch…
Browse files Browse the repository at this point in the history
…annel is no longer ignored by the framebuffer backend (softpoly drawer)
  • Loading branch information
dpjudas committed Apr 15, 2018
1 parent 61032cb commit 11bb626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/polyrenderer/drawers/poly_drawer32.h
Expand Up @@ -242,6 +242,7 @@ namespace TriScreenDrawerModes
{
if (BlendT::Mode == (int)BlendModes::Opaque)
{
fgcolor.a = 255;
return fgcolor;
}
else if (BlendT::Mode == (int)BlendModes::Masked)
Expand Down
1 change: 1 addition & 0 deletions src/polyrenderer/drawers/poly_drawer32_sse2.h
Expand Up @@ -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)
Expand Down

0 comments on commit 11bb626

Please sign in to comment.