From: divverent Date: Fri, 25 Sep 2009 22:42:58 +0000 (+0000) Subject: initilaize the lightscissor array before drawing r_shadows X-Git-Tag: xonotic-v0.1.0preview~1394 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3b80496a9f3535fb21f1acb3664379dfc66ba0d7;p=xonotic%2Fdarkplaces.git initilaize the lightscissor array before drawing r_shadows git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9239 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 7fde5527..a2965163 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -3875,6 +3875,10 @@ void R_DrawModelShadows(void) GL_Scissor(r_refdef.view.x, vid.height - r_refdef.view.y - r_refdef.view.height, r_refdef.view.width, r_refdef.view.height); r_shadow_rendermode = R_SHADOW_RENDERMODE_NONE; + r_shadow_lightscissor[0] = r_refdef.view.x; + r_shadow_lightscissor[1] = vid.height - r_refdef.view.y - r_refdef.view.height; + r_shadow_lightscissor[2] = r_refdef.view.width; + r_shadow_lightscissor[3] = r_refdef.view.height; if (gl_ext_separatestencil.integer) {