OpenGL: Clamp vsync to valid value (#1937)

This commit is contained in:
codeman4033 2026-06-10 08:24:38 -05:00 committed by GitHub
parent 745d30bc08
commit d20d701ef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}