Add a fix for the clash between bboxes and polygons (#197)

This commit is contained in:
fhomolka 2023-08-03 21:19:15 +02:00 committed by GitHub
parent 25f1915fbf
commit 3adec5d0a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: