Skip to content
Permalink
Browse files
Merge pull request #8883 from iwubcode/freelook_clean_state
VideoCommon: Clean freelook camera dirty state when getting the new view
  • Loading branch information
Tilka committed Jun 17, 2020
2 parents 0bc7dcd + a65ef35 commit d6341c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
@@ -270,3 +270,8 @@ bool FreeLookCamera::IsDirty() const
{
return m_dirty;
}

void FreeLookCamera::SetClean()
{
m_dirty = false;
}
@@ -56,6 +56,7 @@ class FreeLookCamera
void DoState(PointerWrap& p);

bool IsDirty() const;
void SetClean();

private:
bool m_dirty = false;
@@ -419,6 +419,8 @@ void VertexShaderManager::SetConstants()

memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4));

g_freelook_camera.SetClean();

dirty = true;
}

0 comments on commit d6341c4

Please sign in to comment.