Fix deadlock with negative swap interval on Aero

Fixes #587.
This commit is contained in:
Camilla Berglund 2015-08-27 20:25:28 +02:00
parent ba4504a9c7
commit 255f9f0234

View File

@ -602,7 +602,7 @@ void _glfwPlatformSwapBuffers(_GLFWwindow* window)
// HACK: Use DwmFlush when desktop composition is enabled
if (_glfwIsCompositionEnabled() && !window->monitor)
{
int count = window->wgl.interval;
int count = abs(window->wgl.interval);
while (count--)
_glfw_DwmFlush();
}