Allow setting swap interval to zero on DWM.

This commit is contained in:
Camilla Berglund
2013-12-04 08:00:53 +01:00
parent ed98e06651
commit 0c0bb28d39
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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