From 616dfacc5d8fe45973514b592f2360219a1219e7 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sun, 2 Jun 2024 23:23:17 +1000 Subject: [PATCH] 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 --- clvm_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2