VideoCommon: Clean freelook camera dirty state when getting the new view
This commit is contained in:
parent
0bc7dcd172
commit
a65ef35f1a
|
@ -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