From: bones_was_here Date: Sun, 2 Jun 2024 13:23:17 +0000 (+1000) Subject: CSQC: disable lighting in R_EndPolygon() X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=616dfacc5d8fe45973514b592f2360219a1219e7;p=xonotic%2Fdarkplaces.git CSQC: disable lighting in R_EndPolygon() It's not supported and causes visual problems. Fixes https://gitlab.com/xonotic/darkplaces/-/issues/419 Signed-off-by: bones_was_here --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 96551b92..84834d9b 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -4231,7 +4231,7 @@ static void VM_CL_R_PolygonEnd (prvm_prog_t *prog) } // create the surface, looking up the best matching texture/shader - materialflags = MATERIALFLAG_WALL; + materialflags = MATERIALFLAG_WALL | MATERIALFLAG_FULLBRIGHT; if (csqc_polygons_defaultmaterial_nocullface.integer) materialflags |= MATERIALFLAG_NOCULLFACE; if (hascolor)