]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
gl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jul 2003 18:08:08 +0000 (18:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 Jul 2003 18:08:08 +0000 (18:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3307 d7cf8633-e32d-0410-b094-e92efae38249

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))