mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
PixelShaderManager: Fizzle out fog changes when disabled here
This lets us remove a use of GetConfig.
This commit is contained in:
parent
fe645b888b
commit
08611c3f36
4 changed files with 9 additions and 6 deletions
|
@ -268,6 +268,9 @@ void PixelShaderManager::SetTexCoordChanged(u8 texmapid)
|
|||
|
||||
void PixelShaderManager::SetFogColorChanged()
|
||||
{
|
||||
if (g_ActiveConfig.bDisableFog)
|
||||
return;
|
||||
|
||||
constants.fogcolor[0] = bpmem.fog.color.r;
|
||||
constants.fogcolor[1] = bpmem.fog.color.g;
|
||||
constants.fogcolor[2] = bpmem.fog.color.b;
|
||||
|
@ -295,6 +298,9 @@ void PixelShaderManager::SetFogParamChanged()
|
|||
|
||||
void PixelShaderManager::SetFogRangeAdjustChanged()
|
||||
{
|
||||
if (g_ActiveConfig.bDisableFog)
|
||||
return;
|
||||
|
||||
s_bFogRangeAdjustChanged = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue