diff --git a/src/GLSLCombiner.cpp b/src/GLSLCombiner.cpp index 36050858..7cbc1c1b 100644 --- a/src/GLSLCombiner.cpp +++ b/src/GLSLCombiner.cpp @@ -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) {