mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
No swap interval on composition.
This commit is contained in:
@@ -533,6 +533,13 @@ void _glfwPlatformSwapInterval(int interval)
|
||||
{
|
||||
_GLFWwindow* window = _glfwCurrentWindow;
|
||||
|
||||
if (_glfwIsCompositionEnabled())
|
||||
{
|
||||
// Don't enabled vsync when desktop compositing is enabled, as it leads
|
||||
// to frame jitter
|
||||
return;
|
||||
}
|
||||
|
||||
if (window->wgl.EXT_swap_control)
|
||||
window->wgl.SwapIntervalEXT(interval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user