]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
initilaize the lightscissor array before drawing r_shadows
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Sep 2009 22:42:58 +0000 (22:42 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Sep 2009 22:42:58 +0000 (22:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9239 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 7fde55273a142d3bc4234c18f21997419c633de7..a2965163173f1110370ff9d65bf8200fcc3c96ec 100644 (file)
@@ -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)
        {