1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Fix FogBlendEnabled condition.

Fixed Perfect Dark visor and lighting issues #427
This commit is contained in:
Sergey Lipskiy 2015-04-27 14:26:49 +06:00
parent 96aab6c9ad
commit cc600d499b

View File

@ -719,7 +719,7 @@ void ShaderCombiner::updateGammaCorrection(bool _bForce)
void ShaderCombiner::updateFogMode(bool _bForce)
{
const u32 blender = (gDP.otherMode.l >> 16);
const int nFogBlendEnabled = config.generalEmulation.enableFog != 0 && gSP.fog.multiplier > 0 && (gDP.otherMode.c1_m1a == 3 || gDP.otherMode.c1_m2a == 3 || gDP.otherMode.c2_m1a == 3 || gDP.otherMode.c2_m2a == 3) ? 256 : 0;
const int nFogBlendEnabled = config.generalEmulation.enableFog != 0 && gSP.fog.multiplier >= 0 && (gDP.otherMode.c1_m1a == 3 || gDP.otherMode.c1_m2a == 3 || gDP.otherMode.c2_m1a == 3 || gDP.otherMode.c2_m2a == 3) ? 256 : 0;
int nFogUsage = ((gSP.geometryMode & G_FOG) != 0) ? 1 : 0;
int nSpecialBlendMode = 0;
switch (blender) {