mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
R_GenerateTexture: Fix translucent pixels being visible on empty pixels
This commit is contained in:
parent
a5bf4a5b8f
commit
719169a625
1 changed files with 4 additions and 0 deletions
|
@ -193,6 +193,8 @@ static void R_DrawBlendColumnInCache(column_t *column, UINT8 *cache, texpatch_t
|
|||
{
|
||||
for (; dest < cache + position + count; source++, dest++, is_opaque++)
|
||||
{
|
||||
if (originPatch->alpha <= ASTTextureBlendingThreshold[1] && !(*is_opaque))
|
||||
continue;
|
||||
*dest = ASTBlendPaletteIndexes(*dest, *source, originPatch->style, originPatch->alpha);
|
||||
*is_opaque = true;
|
||||
}
|
||||
|
@ -237,6 +239,8 @@ static void R_DrawBlendFlippedColumnInCache(column_t *column, UINT8 *cache, texp
|
|||
{
|
||||
for (; dest < cache + position + count; --source, dest++, is_opaque++)
|
||||
{
|
||||
if (originPatch->alpha <= ASTTextureBlendingThreshold[1] && !(*is_opaque))
|
||||
continue;
|
||||
*dest = ASTBlendPaletteIndexes(*dest, *source, originPatch->style, originPatch->alpha);
|
||||
*is_opaque = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue