From: havoc Date: Sat, 22 Dec 2012 10:32:38 +0000 (+0000) Subject: fixed coronas not being rendered with MATERIALFLAG_NODEPTHTEST X-Git-Tag: xonotic-v0.8.0~96^2~171 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=834c75d223649f6e355fe63007eb1292f94026e2;p=xonotic%2Fdarkplaces.git fixed coronas not being rendered with MATERIALFLAG_NODEPTHTEST git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11867 d7cf8633-e32d-0410-b094-e92efae38249 --- 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); }