mirror of
https://github.com/glfw/glfw.git
synced 2026-09-19 15:25:50 +00:00
Allow setting swap interval to zero on DWM.
This commit is contained in:
+1
-1
@@ -606,7 +606,7 @@ void _glfwPlatformSwapInterval(int interval)
|
||||
_GLFWwindow* window = _glfwPlatformGetCurrentContext();
|
||||
|
||||
#if !defined(_GLFW_USE_DWM_SWAP_INTERVAL)
|
||||
if (_glfwIsCompositionEnabled())
|
||||
if (_glfwIsCompositionEnabled() && interval)
|
||||
{
|
||||
// Don't enabled vsync when desktop compositing is enabled, as it leads
|
||||
// to frame jitter
|
||||
|
||||
Reference in New Issue
Block a user