mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-06-12 09:34:57 -06:00
OpenGL: Clamp vsync to valid value (#1937)
This commit is contained in:
parent
745d30bc08
commit
d20d701ef0
@ -119,6 +119,7 @@ public:
|
||||
void UpdateVSyncState()
|
||||
{
|
||||
int configValue = GetConfig().vsync.GetValue();
|
||||
configValue = configValue > 0 ? 1 : 0;
|
||||
if(m_activeVSyncState != configValue)
|
||||
{
|
||||
#if BOOST_OS_WINDOWS
|
||||
@ -175,4 +176,4 @@ bool GLCanvasManager::MakeCurrent(bool padView)
|
||||
return false;
|
||||
m_glContext->SetCurrent(*canvas);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user