From af08b04c428352c6db2621b5b65d2732031885ec Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 22 Dec 2012 10:32:38 +0000 Subject: [PATCH] fixed coronas not being rendered with MATERIALFLAG_NODEPTHTEST git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11867 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=834c75d223649f6e355fe63007eb1292f94026e2 --- r_shadow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r_shadow.c b/r_shadow.c index 02f8b073..1e223519 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -5201,7 +5201,7 @@ static void R_DrawCorona(rtlight_t *rtlight, float cscale, float scale) } R_CalcSprite_Vertex3f(vertex3f, rtlight->shadoworigin, r_refdef.view.right, r_refdef.view.up, scale, -scale, -scale, scale); RSurf_ActiveCustomEntity(&identitymatrix, &identitymatrix, RENDER_NODEPTHTEST, 0, color[0], color[1], color[2], 1, 4, vertex3f, spritetexcoord2f, NULL, NULL, NULL, NULL, 2, polygonelement3i, polygonelement3s, false, false); - R_DrawCustomSurface(r_shadow_lightcorona, &identitymatrix, MATERIALFLAG_ADD | MATERIALFLAG_BLENDED | MATERIALFLAG_FULLBRIGHT | MATERIALFLAG_NOCULLFACE, 0, 4, 0, 2, false, false); + R_DrawCustomSurface(r_shadow_lightcorona, &identitymatrix, MATERIALFLAG_ADD | MATERIALFLAG_BLENDED | MATERIALFLAG_FULLBRIGHT | MATERIALFLAG_NOCULLFACE | MATERIALFLAG_NODEPTHTEST, 0, 4, 0, 2, false, false); if(negated) GL_BlendEquationSubtract(false); } -- 2.39.2