diff --git a/Source/Core/VideoCommon/FreeLookCamera.cpp b/Source/Core/VideoCommon/FreeLookCamera.cpp index 45ceb775b1..4e49496dfd 100644 --- a/Source/Core/VideoCommon/FreeLookCamera.cpp +++ b/Source/Core/VideoCommon/FreeLookCamera.cpp @@ -270,3 +270,8 @@ bool FreeLookCamera::IsDirty() const { return m_dirty; } + +void FreeLookCamera::SetClean() +{ + m_dirty = false; +} diff --git a/Source/Core/VideoCommon/FreeLookCamera.h b/Source/Core/VideoCommon/FreeLookCamera.h index 0fe27d5e58..aaee69390c 100644 --- a/Source/Core/VideoCommon/FreeLookCamera.h +++ b/Source/Core/VideoCommon/FreeLookCamera.h @@ -56,6 +56,7 @@ public: void DoState(PointerWrap& p); bool IsDirty() const; + void SetClean(); private: bool m_dirty = false; diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp index 2044de1aff..6c65a86efa 100644 --- a/Source/Core/VideoCommon/VertexShaderManager.cpp +++ b/Source/Core/VideoCommon/VertexShaderManager.cpp @@ -419,6 +419,8 @@ void VertexShaderManager::SetConstants() memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4)); + g_freelook_camera.SetClean(); + dirty = true; }