From 3016b0201fb784960cc7b82378c919835b7b69bc Mon Sep 17 00:00:00 2001 From: Shpoike Date: Wed, 22 Jul 2020 02:37:57 +0100 Subject: [PATCH] Fix menuqc-related crash with r_shadows enabled. --- Quake/gl_rmain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quake/gl_rmain.c b/Quake/gl_rmain.c index 47fa8e63..e1b28bc8 100644 --- a/Quake/gl_rmain.c +++ b/Quake/gl_rmain.c @@ -982,7 +982,8 @@ void R_RenderScene (void) S_ExtraUpdate (); // don't let sound get messed up if going slow - R_DrawShadows (); //johnfitz -- render entity shadows + if (r_refdef.drawworld) + R_DrawShadows (); //johnfitz -- render entity shadows R_DrawEntitiesOnList (false); //johnfitz -- false means this is the pass for nonalpha entities