Merge pull request #8883 from iwubcode/freelook_clean_state

VideoCommon: Clean freelook camera dirty state when getting the new view
This commit is contained in:
Tilka 2020-06-17 18:51:55 +01:00 committed by GitHub
commit d6341c4117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -270,3 +270,8 @@ bool FreeLookCamera::IsDirty() const
{
return m_dirty;
}
void FreeLookCamera::SetClean()
{
m_dirty = false;
}

View File

@ -56,6 +56,7 @@ public:
void DoState(PointerWrap& p);
bool IsDirty() const;
void SetClean();
private:
bool m_dirty = false;

View File

@ -419,6 +419,8 @@ void VertexShaderManager::SetConstants()
memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4));
g_freelook_camera.SetClean();
dirty = true;
}