VideoCommon: Clean freelook camera dirty state when getting the new view

This commit is contained in:
iwubcode 2020-06-17 12:07:40 -05:00
parent 0bc7dcd172
commit a65ef35f1a
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;
}