]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed coronas not being rendered with MATERIALFLAG_NODEPTHTEST
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 22 Dec 2012 10:32:38 +0000 (10:32 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 31 Dec 2012 14:31:21 +0000 (15:31 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11867 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=834c75d223649f6e355fe63007eb1292f94026e2

r_shadow.c

index 02f8b073fb2a84a2d1e8b125bc03e61af747a6f0..1e2235197b11354734a136171df8faacf5b9634b 100644 (file)
@@ -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);
        }