From 7c2dd01873f4f1762368639869899229f071427a Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Fri, 15 Dec 2017 17:30:42 -0600 Subject: [PATCH] OpenGL2: Restore adding fixed ambient light when HDR is enabled Use opengl1 renderer behavior of adding fixed amount of ambient light to all models regardless of HDR setting. It fixes the view weapon having zero ambient light on pillcity map. --- code/renderergl2/tr_light.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderergl2/tr_light.c b/code/renderergl2/tr_light.c index 484159f3..3ac2154e 100644 --- a/code/renderergl2/tr_light.c +++ b/code/renderergl2/tr_light.c @@ -356,7 +356,7 @@ void R_SetupEntityLighting( const trRefdef_t *refdef, trRefEntity_t *ent ) { } // bonus items and view weapons have a fixed minimum add - if ( !r_hdr->integer /* ent->e.renderfx & RF_MINLIGHT */ ) { + if ( 1 /* ent->e.renderfx & RF_MINLIGHT */ ) { // give everything a minimum light add ent->ambientLight[0] += tr.identityLight * 32; ent->ambientLight[1] += tr.identityLight * 32;