mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 09:11:01 +00:00
Don't draw drop shadow if vis->transmap == NULL
This commit is contained in:
parent
773268f506
commit
257719db76
1 changed files with 4 additions and 0 deletions
|
@ -1055,7 +1055,11 @@ static void R_DrawVisSprite(vissprite_t *vis)
|
|||
// invalid memory access crashes caused by R_ProjectDropShadow putting wrong values
|
||||
// in dc_texturemid and dc_iscale when the shadow is sloped.
|
||||
if (vis->cut & SC_SHADOW)
|
||||
{
|
||||
if (dc_transmap == NULL)
|
||||
return;
|
||||
colfunc = R_DrawDropShadowColumn_8;
|
||||
}
|
||||
|
||||
if (vis->extra_colormap && !(vis->renderflags & RF_NOCOLORMAPS))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue