From b067bb6304dcc0e4cd10147f7124d8f03b35f0f7 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Fri, 29 May 2015 16:32:33 +0200 Subject: [PATCH] Removed swap interval re-application hack. This approach is not compatible with multi-threading. --- src/win32_window.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/win32_window.c b/src/win32_window.c index 0fdcd7ad..d120ebf0 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -563,17 +563,6 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, break; } - case WM_DWMCOMPOSITIONCHANGED: - { - // HACK: Re-apply interval when desktop composition is toggled to - // ensure WGL swap interval is disabled when necessary - _GLFWwindow* previous = _glfwPlatformGetCurrentContext(); - _glfwPlatformMakeContextCurrent(window); - _glfwPlatformSwapInterval(window->wgl.interval); - _glfwPlatformMakeContextCurrent(previous); - break; - } - case WM_DROPFILES: { HDROP hDrop = (HDROP) wParam;