Skip to content

Commit

Permalink
VideoCommon: Clean freelook camera dirty state when getting the new view
Browse files Browse the repository at this point in the history
  • Loading branch information
iwubcode committed Jun 17, 2020
1 parent 0bc7dcd commit a65ef35
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/VideoCommon/FreeLookCamera.cpp
Expand Up @@ -270,3 +270,8 @@ bool FreeLookCamera::IsDirty() const
{
return m_dirty;
}

void FreeLookCamera::SetClean()
{
m_dirty = false;
}
1 change: 1 addition & 0 deletions Source/Core/VideoCommon/FreeLookCamera.h
Expand Up @@ -56,6 +56,7 @@ class FreeLookCamera
void DoState(PointerWrap& p);

bool IsDirty() const;
void SetClean();

private:
bool m_dirty = false;
Expand Down
2 changes: 2 additions & 0 deletions Source/Core/VideoCommon/VertexShaderManager.cpp
Expand Up @@ -419,6 +419,8 @@ void VertexShaderManager::SetConstants()

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

g_freelook_camera.SetClean();

dirty = true;
}

Expand Down

0 comments on commit a65ef35

Please sign in to comment.