mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-06 01:12:04 +00:00
Fix cyan pixel cutting in Software
This commit is contained in:
parent
8c17bb57e6
commit
c7281d1801
2 changed files with 2 additions and 2 deletions
|
@ -862,7 +862,7 @@ void R_DrawSinglePlane(visplane_t *pl)
|
||||||
return; // Don't even draw it
|
return; // Don't even draw it
|
||||||
if (pl->ffloor->blend) // additive, (reverse) subtractive, modulative
|
if (pl->ffloor->blend) // additive, (reverse) subtractive, modulative
|
||||||
ds_transmap = R_GetBlendTable(pl->ffloor->blend, trans);
|
ds_transmap = R_GetBlendTable(pl->ffloor->blend, trans);
|
||||||
else if (!(ds_transmap = R_GetTranslucencyTable(trans)))
|
else if (!(ds_transmap = R_GetTranslucencyTable(trans)) || trans == 0)
|
||||||
spanfunctype = SPANDRAWFUNC_SPLAT; // Opaque, but allow transparent flat pixels
|
spanfunctype = SPANDRAWFUNC_SPLAT; // Opaque, but allow transparent flat pixels
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -614,7 +614,7 @@ void R_RenderThickSideRange(drawseg_t *ds, INT32 x1, INT32 x2, ffloor_t *pfloor)
|
||||||
return; // Don't even draw it
|
return; // Don't even draw it
|
||||||
if (pfloor->blend) // additive, (reverse) subtractive, modulative
|
if (pfloor->blend) // additive, (reverse) subtractive, modulative
|
||||||
dc_transmap = R_GetBlendTable(pfloor->blend, trans);
|
dc_transmap = R_GetBlendTable(pfloor->blend, trans);
|
||||||
else if (!(dc_transmap = R_GetTranslucencyTable(trans)))
|
else if (!(dc_transmap = R_GetTranslucencyTable(trans)) || trans == 0)
|
||||||
fuzzy = false; // Opaque
|
fuzzy = false; // Opaque
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue