From 82ca1f41b269a2411a3c5a111717ab10df460a04 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 2 Oct 2009 04:13:31 +0000 Subject: [PATCH] stub out face culling for shadowmapping temporarily git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9276 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/r_shadow.c b/r_shadow.c index 79f177ff..16528cb7 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -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); -- 2.39.2