mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-03 00:42:39 +00:00
Lint fixes
This commit is contained in:
parent
11de923dcb
commit
31cfe8250d
39 changed files with 219 additions and 235 deletions
|
@ -74,7 +74,8 @@ void PixelShaderManager::Dirty()
|
|||
// Any constants that can changed based on settings should be re-calculated
|
||||
m_fog_range_adjusted_changed = true;
|
||||
|
||||
SetEfbScaleChanged(g_framebuffer_manager->EFBToScaledXf(1), g_framebuffer_manager->EFBToScaledYf(1));
|
||||
SetEfbScaleChanged(g_framebuffer_manager->EFBToScaledXf(1),
|
||||
g_framebuffer_manager->EFBToScaledYf(1));
|
||||
SetFogParamChanged();
|
||||
|
||||
dirty = true;
|
||||
|
@ -102,8 +103,8 @@ void PixelShaderManager::SetConstants()
|
|||
// so to simplify I use the hi coefficient as K in the shader taking 256 as the scale
|
||||
// TODO: Shouldn't this be EFBToScaledXf?
|
||||
constants.fogf[2] = ScreenSpaceCenter;
|
||||
constants.fogf[3] =
|
||||
static_cast<float>(g_framebuffer_manager->EFBToScaledX(static_cast<int>(2.0f * xfmem.viewport.wd)));
|
||||
constants.fogf[3] = static_cast<float>(
|
||||
g_framebuffer_manager->EFBToScaledX(static_cast<int>(2.0f * xfmem.viewport.wd)));
|
||||
|
||||
for (size_t i = 0, vec_index = 0; i < std::size(bpmem.fogRange.K); i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue