]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a problem with stenciltwoside introduced by recent changes
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 May 2005 15:48:07 +0000 (15:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 May 2005 15:48:07 +0000 (15:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5254 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 7a2d2d907d238d1d1e994b46fe883341314e6370..f39a096579b4bf6d28caf77e40d98debb273617b 100644 (file)
@@ -1121,12 +1121,12 @@ void R_Shadow_Stage_StencilShadowVolumes(void)
                r_shadowstage = R_SHADOWSTAGE_STENCILTWOSIDE;
                qglDisable(GL_CULL_FACE);
                qglEnable(GL_STENCIL_TEST_TWO_SIDE_EXT);
-               qglActiveStencilFaceEXT(GL_FRONT); // quake is backwards, this is back faces
-               qglStencilMask(~0);
-               qglStencilOp(GL_KEEP, GL_DECR, GL_KEEP);
                qglActiveStencilFaceEXT(GL_BACK); // quake is backwards, this is front faces
                qglStencilMask(~0);
                qglStencilOp(GL_KEEP, GL_INCR, GL_KEEP);
+               qglActiveStencilFaceEXT(GL_FRONT); // quake is backwards, this is back faces
+               qglStencilMask(~0);
+               qglStencilOp(GL_KEEP, GL_DECR, GL_KEEP);
        }
        else
        {