Core / VideoCommon: refactor FreeLookCamera to have the underlying controller handle all the logic (field-of-view, movement, etc)

This commit is contained in:
iwubcode 2021-04-24 22:59:35 -05:00
commit e70157474b
5 changed files with 147 additions and 143 deletions

View file

@ -356,7 +356,7 @@ void VertexShaderManager::SetConstants()
}
}
if (bProjectionChanged || g_freelook_camera.IsDirty())
if (bProjectionChanged || g_freelook_camera.GetController()->IsDirty())
{
bProjectionChanged = false;
@ -435,7 +435,7 @@ void VertexShaderManager::SetConstants()
memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4));
g_freelook_camera.SetClean();
g_freelook_camera.GetController()->SetClean();
dirty = true;
}