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;
|
return m_dirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FreeLookCamera::SetClean()
|
||||||
|
{
|
||||||
|
m_dirty = false;
|
||||||
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ public:
|
||||||
void DoState(PointerWrap& p);
|
void DoState(PointerWrap& p);
|
||||||
|
|
||||||
bool IsDirty() const;
|
bool IsDirty() const;
|
||||||
|
void SetClean();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_dirty = false;
|
bool m_dirty = false;
|
||||||
|
|
|
@ -419,6 +419,8 @@ void VertexShaderManager::SetConstants()
|
||||||
|
|
||||||
memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4));
|
memcpy(constants.projection.data(), corrected_matrix.data.data(), 4 * sizeof(float4));
|
||||||
|
|
||||||
|
g_freelook_camera.SetClean();
|
||||||
|
|
||||||
dirty = true;
|
dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue