From: havoc Date: Mon, 28 Mar 2011 07:16:34 +0000 (+0000) Subject: do not use light scissoring on deferred lighting mode, it often yields X-Git-Tag: xonotic-v0.5.0~353 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=620a14a1eabc380aa48020848ba78e6ce517b7e4;p=xonotic%2Fdarkplaces.git 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 ::stable-branch::merge=e75885389d9e1997c22e8fa1839d5d62322468ba --- 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;