mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Core / VideoCommon: refactor FreeLookCamera to have the underlying controller handle all the logic (field-of-view, movement, etc)
This commit is contained in:
parent
ff1cb5a1c0
commit
e70157474b
5 changed files with 147 additions and 143 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue