No swap interval on composition.

This commit is contained in:
Camilla Berglund
2013-03-11 20:54:32 +01:00
parent 54d1d14f59
commit 51ee3a5c0a
4 changed files with 60 additions and 1 deletions
+7
View File
@@ -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);
}