mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
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:
commit
d6341c4117
@ -270,3 +270,8 @@ bool FreeLookCamera::IsDirty() const
|
||||
{
|
||||
return m_dirty;
|
||||
}
|
||||
|
||||
void FreeLookCamera::SetClean()
|
||||
{
|
||||
m_dirty = false;
|
||||
}
|
||||
|
@ -56,6 +56,7 @@ public:
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user