mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
No swap interval on composition.
This commit is contained in:
@@ -606,6 +606,20 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_DWMCOMPOSITIONCHANGED:
|
||||
{
|
||||
if (_glfwIsCompositionEnabled())
|
||||
{
|
||||
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
||||
_glfwPlatformMakeContextCurrent(window);
|
||||
_glfwPlatformSwapInterval(0);
|
||||
_glfwPlatformMakeContextCurrent(previous);
|
||||
}
|
||||
|
||||
// TODO: Restore vsync if compositing was disabled
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
|
||||
Reference in New Issue
Block a user