]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix stencil clear
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Sep 2009 22:20:32 +0000 (22:20 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 28 Sep 2009 22:20:32 +0000 (22:20 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9253 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index cb551cebe41daf3c48e935d80a7d0da7032213c0..65a54f763369f987ac2b2042803d506f10f01a29 100644 (file)
@@ -3757,6 +3757,7 @@ void R_DrawRTLight(rtlight_t *rtlight, qboolean visible)
        {
                // draw stencil shadow volumes to mask off pixels that are in shadow
                // so that they won't receive lighting
+               GL_Scissor(r_shadow_lightscissor[0], r_shadow_lightscissor[1], r_shadow_lightscissor[2], r_shadow_lightscissor[3]);
                R_Shadow_ClearStencil();
                if (numsurfaces)
                        R_Shadow_DrawWorldShadow(numsurfaces, surfacelist, shadowtrispvs);