From 257719db7659130fccc3a17b65359d6b379cad15 Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Fri, 17 May 2024 18:50:54 -0300 Subject: [PATCH] Don't draw drop shadow if vis->transmap == NULL --- src/r_things.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_things.c b/src/r_things.c index 07469f87e..e45136a45 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -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)) {