From 58ba283c459e8f1df916008c94f9a4e5caf1c19d Mon Sep 17 00:00:00 2001 From: plagman Date: Mon, 15 Aug 2011 03:41:42 +0000 Subject: [PATCH] Fix colored fog in Polymer. This fixes a ridiculous interaction problem between non-black fog and additive lighting passes. Plagman is stupid. git-svn-id: https://svn.eduke32.com/eduke32@1965 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/polymer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index ec8c804fe..82c9f99fa 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -4376,7 +4376,7 @@ static int32_t polymer_bindmaterial(_prmaterial material, int16_t* lights, programbits |= prprogrambits[PR_BIT_MIRROR_MAP].bit; // PR_BIT_FOG - if (!material.mirrormap) + if (!curlight && !material.mirrormap) programbits |= prprogrambits[PR_BIT_FOG].bit; // PR_BIT_GLOW_MAP