From e75885389d9e1997c22e8fa1839d5d62322468ba Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 28 Mar 2011 07:16:34 +0000 Subject: [PATCH] do not use light scissoring on deferred lighting mode, it often yields strange artifacts on shadowless lights git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10973 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_shadow.c b/r_shadow.c index 062892e4..bef3f2c3 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2973,7 +2973,7 @@ int bboxedges[12][2] = qboolean R_Shadow_ScissorForBBox(const float *mins, const float *maxs) { - if (!r_shadow_scissor.integer) + if (!r_shadow_scissor.integer || r_shadow_usingdeferredprepass) { r_shadow_lightscissor[0] = r_refdef.view.viewport.x; r_shadow_lightscissor[1] = r_refdef.view.viewport.y; -- 2.39.2