]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
invert cull face settings when drawing model shadowmaps
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Feb 2010 03:02:29 +0000 (03:02 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 5 Feb 2010 03:02:29 +0000 (03:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9937 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index ba6ffae396dce55076d7af97dd9a2f789742927c..1e6aa9a7a3645373e2c3e61d79ed3afe93c5eadc 100644 (file)
@@ -4377,6 +4377,10 @@ void R_DrawModelShadowMaps(void)
        GL_Scissor(viewport.x + r_shadow_shadowmapborder, viewport.y + r_shadow_shadowmapborder, viewport.width - 2*r_shadow_shadowmapborder, viewport.height - 2*r_shadow_shadowmapborder);
        CHECKGLERROR
 
+       r_refdef.view.cullface_front = r_shadow_cullface_back;
+       r_refdef.view.cullface_back = r_shadow_cullface_front;
+       GL_CullFace(r_refdef.view.cullface_back);
+
        for (i = 0;i < r_refdef.scene.numentities;i++)
        {
                ent = r_refdef.scene.entities[i];