Skip to content

Commit

Permalink
CSQC: disable lighting in R_EndPolygon()
Browse files Browse the repository at this point in the history
It's not supported and causes visual problems.

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/419

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
  • Loading branch information
bones-was-here committed Jun 2, 2024
1 parent 9acc623 commit 616dfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clvm_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 616dfac

Please sign in to comment.