From: havoc Date: Tue, 22 Jul 2003 18:08:08 +0000 (+0000) Subject: gl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz... X-Git-Tag: xonotic-v0.1.0preview~6502 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=860f2b0714d5aa65b390552b5ca75986b9a6d900;p=xonotic%2Fdarkplaces.git gl_flashblend 1 now disables model dlighting like it was supposed to (thanks to Tomaz for reporting this) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3307 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_light.c b/r_light.c index 65150fda..269d3d1f 100644 --- 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))