mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-10-20 17:59:10 +02:00
OpenGL: Clamp vsync to valid value (#1937)
This commit is contained in:
1 parent
745d30bc08
commit
d20d701ef0
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user