From 3adec5d0a53ba9ae32a92fc0a805cf6d5ec107fb Mon Sep 17 00:00:00 2001 From: fhomolka Date: Thu, 3 Aug 2023 21:19:15 +0200 Subject: [PATCH] Add a fix for the clash between bboxes and polygons (#197) --- engine/client/cl_ents.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/client/cl_ents.c b/engine/client/cl_ents.c index 5c9f26e7e..52ad547d4 100644 --- a/engine/client/cl_ents.c +++ b/engine/client/cl_ents.c @@ -2892,6 +2892,15 @@ void CLQ1_AddVisibleBBoxes(void) shader_t *s; vec3_t min, max, size; + #pragma message("Temporary Code: BBoxes calling R2D_Flush") + /* + * HACK(fhomolka): For some reason, bboxes like to mess with progs-drawn Polygons. + * The clean way would be to understand WHY they mess with eachother, for now this must do. + * TODO(fhomolka) + * Comment by Spike: "qc's polys should have been flushed inside renderscene" + */ + if(R2D_Flush) R2D_Flush(); + switch(r_showbboxes.ival & 3) { default: