mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
ConstantManager: Do not use single-element arrays.
This commit is contained in:
parent
6c2971eaf6
commit
6e65e02c9e
3 changed files with 7 additions and 7 deletions
|
@ -283,16 +283,16 @@ void PixelShaderManager::SetFogParamChanged()
|
|||
if (!g_ActiveConfig.bDisableFog)
|
||||
{
|
||||
constants.fogf[1][0] = bpmem.fog.a.GetA();
|
||||
constants.fogi[0][1] = bpmem.fog.b_magnitude;
|
||||
constants.fogi[1] = bpmem.fog.b_magnitude;
|
||||
constants.fogf[1][2] = bpmem.fog.c_proj_fsel.GetC();
|
||||
constants.fogi[0][3] = bpmem.fog.b_shift;
|
||||
constants.fogi[3] = bpmem.fog.b_shift;
|
||||
}
|
||||
else
|
||||
{
|
||||
constants.fogf[1][0] = 0.f;
|
||||
constants.fogi[0][1] = 1;
|
||||
constants.fogi[1] = 1;
|
||||
constants.fogf[1][2] = 0.f;
|
||||
constants.fogi[0][3] = 1;
|
||||
constants.fogi[3] = 1;
|
||||
}
|
||||
dirty = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue