Don't draw drop shadow if vis->transmap == NULL

This commit is contained in:
Lactozilla 2024-05-17 18:50:54 -03:00
parent 773268f506
commit 257719db76

View file

@ -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))
{