]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
stub out face culling for shadowmapping temporarily
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Oct 2009 04:13:31 +0000 (04:13 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 2 Oct 2009 04:13:31 +0000 (04:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9276 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 79f177ffe98628c491b7ea22a6e22ec63f8ae51a..16528cb75d763b0c7aa9c7e013c682d8b8e7f007 100644 (file)
@@ -1700,6 +1700,7 @@ void R_Shadow_RenderMode_ShadowMap(int side, qboolean clear, int size)
        CHECKGLERROR
        R_SetViewport(&viewport);
        GL_PolygonOffset(0, 0);
+#if 0
        if(r_shadow_shadowmode >= 1 && r_shadow_shadowmode <= 2)
        {
                static qboolean cullback[6] = { true, false, true, false, false, true };
@@ -1707,6 +1708,9 @@ void R_Shadow_RenderMode_ShadowMap(int side, qboolean clear, int size)
        }
        else if(r_shadow_shadowmode == 3)
                GL_CullFace(r_refdef.view.cullface_back);
+#else
+       GL_CullFace(GL_NONE);
+#endif
        GL_Scissor(viewport.x, viewport.y, viewport.width, viewport.height);
        GL_DepthMask(true);
        GL_DepthTest(true);