]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.c
m.wantoverbright is gone
[xonotic/darkplaces.git] / r_light.c
index 56d040fccc13e90ee1a6ed7de63b920bd9fbf18d..74334c502d53f18b7a1d3a941693d39254becc1f 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -148,7 +148,6 @@ void R_DrawCoronas(void)
        memset(&m, 0, sizeof(m));
        m.blendfunc1 = GL_ONE;
        m.blendfunc2 = GL_ONE;
-       m.wantoverbright = false;
        m.depthdisable = true; // magic
        m.tex[0] = R_GetTexture(lightcorona);
        R_Mesh_Matrix(&r_identitymatrix);
@@ -160,7 +159,7 @@ void R_DrawCoronas(void)
                dist = (DotProduct(rd->origin, vpn) - viewdist);
                if (dist >= 24.0f && CL_TraceLine(rd->origin, r_origin, NULL, NULL, 0, true) == 1)
                {
-                       scale = mesh_colorscale * (1.0f / 131072.0f);
+                       scale = r_colorscale * (1.0f / 131072.0f);
                        if (gl_flashblend.integer)
                                scale *= 4.0f;
                        if (fogenabled)