OpenGLContext: Add SupportsNegativeSwapInterval()

This commit is contained in:
Stenzek
2024-04-11 20:31:57 +10:00
parent 7b93edada1
commit 2ad67ad3ee
7 changed files with 51 additions and 19 deletions

View File

@ -160,6 +160,11 @@ bool OpenGLContextWGL::DoneCurrent()
return wglMakeCurrent(m_dc, nullptr);
}
bool OpenGLContextWGL::SupportsNegativeSwapInterval() const
{
return GLAD_WGL_EXT_swap_control && GLAD_WGL_EXT_swap_control_tear;
}
bool OpenGLContextWGL::SetSwapInterval(s32 interval)
{
if (!GLAD_WGL_EXT_swap_control)