From eb27688181a68459ffc6720b057b5fdf750c713c Mon Sep 17 00:00:00 2001 From: Eukara Date: Tue, 20 Apr 2021 19:21:34 +0000 Subject: [PATCH] Fix blob shadows/itemtimers from corrupting other trisoup by not flushing. ok'd eukara@ Spoike@ git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5823 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_ents.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index f0675ae6b..43ede6376 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -3050,6 +3050,9 @@ void R_AddItemTimer(vec3_t shadoworg, float yaw, float radius, float percent, ve ctx.scale[2] = 1/radius; ctx.scale[0] = 0;//.5/radius; + if (R2D_Flush) + R2D_Flush(); + /*reuse the previous trigroup if its the same shader*/ if (cl_numstris && cl_stris[cl_numstris-1].shader == s && cl_stris[cl_numstris-1].flags == (BEF_NODLIGHT|BEF_NOSHADOWS)) t = &cl_stris[cl_numstris-1]; @@ -3126,6 +3129,9 @@ void CLQ1_AddShadow(entity_t *ent) ctx.scale[2] = 1/radius; ctx.scale[0] = 0.5/radius; + if (R2D_Flush) + R2D_Flush(); + /*reuse the previous trigroup if its the same shader*/ if (cl_numstris && cl_stris[cl_numstris-1].shader == s && cl_stris[cl_numstris-1].flags == (BEF_NODLIGHT|BEF_NOSHADOWS)) t = &cl_stris[cl_numstris-1];