fix: vsyncstate updating even if new and old states are same
This commit is contained in:
1 parent
bd2bafe8ae
commit
4f97d02e41
1 file changed
+2
-1
@@ -43,7 +43,8 @@ void C4JRender::UpdateGamma(unsigned short usGamma)
|
|||||||
|
|
||||||
void C4JRender::SetVSync(bool vs)
|
void C4JRender::SetVSync(bool vs)
|
||||||
{
|
{
|
||||||
m_VSyncState = vs;
|
if(vs != m_VSyncState)
|
||||||
|
m_VSyncState = vs;
|
||||||
}
|
}
|
||||||
|
|
||||||
int C4JRender::GetVSync()
|
int C4JRender::GetVSync()
|
||||||
|
|||||||
Reference in new issue
Block a user