]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_light.c
gl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz...
[xonotic/darkplaces.git] / r_light.c
index 65150fdade14944ea7dd3eaddd9e0b0f312ff40f..269d3d1f0fd7cfd10f9d2669df9892f48248bc04 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -866,7 +866,7 @@ void R_UpdateEntLights(entity_render_t *ent)
        int i;
        const mlight_t *sl;
        vec3_t v;
-       if (r_shadow_realtime_dlight.integer)
+       if (r_shadow_realtime_dlight.integer || gl_flashblend.integer)
                return;
        VectorSubtract(ent->origin, ent->entlightsorigin, v);
        if (ent->entlightsframe != (r_framecount - 1) || (realtime > ent->entlightstime && DotProduct(v,v) >= 1.0f))